首页 \ 问答 \ gradle项目是否依赖于另一个项目获取库?(Does gradle project with dependency to another project get libraries?)

gradle项目是否依赖于另一个项目获取库?(Does gradle project with dependency to another project get libraries?)

我有两个项目:

ProjectA使用ProjectB

项目A:

- Settings.graddle:

include ':projectB'

- build.gradle:

dependencies {
  compile project(':projectB')
}

项目B:

- build.gradle:

dependencies {
  compile group: 'org.modelmapper.extensions', name: 'modelmapper-jackson', version: '1.1.1'
}

这将导入到ProjectB的modelmapper-jackson库中。 (预期行为)

还将 modelmapper-jackson lib导入到ProjectA中

这可能是我想要的行为, 但是

我想了解如何定义它的输入和不输入,因为将来我可能会有更多的项目,并且不希望所有的库都拥有所有的库

我错过了什么?


I have two projects:

ProjectA makes use of ProjectB

ProjectA:

-- Settings.graddle:

include ':projectB'

-- build.gradle:

dependencies {
  compile project(':projectB')
}

ProjectB:

-- build.gradle:

dependencies {
  compile group: 'org.modelmapper.extensions', name: 'modelmapper-jackson', version: '1.1.1'
}

This imports into ProjectB the modelmapper-jackson lib. (Expected behaviour)

It also imports modelmapper-jackson lib into ProjectA.

It might be this is the behaviour I want, but:

I would like to understand how to define what it is imported and what it is not, since in the future I might have more projects, and do not want all of them to have all the libraries

Is there anything in gradle I missed?


原文:https://stackoverflow.com/questions/47526925
更新时间:2023-05-29 22:05

最满意答案

Tools-> Options-> Sql Server Object Explorer-> Scripting-> Object Scriptiong Options-> Script permissions


Tools->Options->Sql Server Object Explorer->Scripting->Object Scriptiong Options->Script permissions

相关问答

更多
  • 我的测试: $ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.5.35-1ubuntu1 (Ubuntu) Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle ...
  • Grant-NfsSharePermission cmdlet需要NFS共享的名称或共享的路径。 你提供了两者,它不喜欢这样。 只提供-Name或只提供-Path,但不能同时提供它们,它应该可以工作。 正如TheMadTechnician在评论中提到的那样,您可以通过查看在线帮助或内置帮助(使用Get-Help Grant-NfsSharePermission)并看到它们提供两个参数集来看到这一点,并且这些示例仅显示其中一个参数的使用。 The Grant-NfsSharePermission cmdlet ...
  • 不同物体上的GRANT是分开的。 GRANT对数据库的GRANT对其中的模式的GRANT权限。 类似地, GRANT对模式的授权不会对其中的表授予权限。 如果您有权从表中SELECT ,但不具有在包含该表的模式中查看它的权限,那么您无法访问该表。 权限测试按顺序完成:您是否在模式上USAGE权限? 否:拒绝访问。 是的,你还有桌子上的适当权利吗? 否:拒绝访问。 是:检查列权限。 您的混淆可能源自public模式对每个用户/组都是其成员的角色public的所有权限的默认GRANT 。 所以每个人都已经在该架 ...
  • 它像狂欢节中的格兰帕一样j。 ORM可以使用SP,但它不能充分利用它们。 SP只是生活的方式,它就像第十一条诫命一样,但正如你指出的那样,ORM并没有真正起作用。 我曾经认为整个SP层本身就是一种预制的ORM,你带走了你的关系数据库,做了一堆连接并返回了一组数据,其中包含填充对象所需的列/属性。 目前,对于动态ORM类型的应用程序,需要在表上指定权限,如果您的DBA正在执行其工作,那就不那么安全了,它只需要更多工作,并且需要就表上允许的内容进行更多沟通,如果您不需要DELETE,那么您的DBA需要知道不为其 ...
  • 老兄, 这是一个明显的例子,即文件/home/chilinut/logs/apachelog/log.log的父目录没有用户apache的权限。 您还必须为父目录的用户apache提供写入,读取权限。在您的情况下,请尝试以下操作 chown chilinut:apache /home/chilinut/ chown -R chilinut:apache /home/chilinut/* chmod g+rw /home/chilinut/ chmod -R g+rw /home/chilinut/* 现在 ...
  • 如前所述,如果有人可以发放权限,他们可以向他们自己(或虚拟帐户)分发权限。 我不确定在SQL Server中是否有技巧提供“少于我的用户权限”。 我会这样做的方式是存储过程。 创建一个存储过程,为指定用户提供特定的权限或权限集合(这些权限是普通用户可以拥有的权限)。 然后让开发人员执行对此存储过程的访问。 实际上,您使用存储过程来创建GRANT的受限版本,同时将完整的GRANT命令保留给自己。 As said, if someone could hand out permissions, they coul ...
  • 根据GRANT命令,无法基于每行设置权限级别(表/列,是 - 但不是单个行)。 您可以设置View来处理此问题,并授予用户访问视图的权限。 以下视图应该为您提供基于当前用户的消息: CREATE VIEW user_messages AS SELECT * FROM messages WHERE messages.from = user() OR messages.to = user(); 授权声明应该类似: GRANT ALL ON db.user_message ...
  • Tools-> Options-> Sql Server Object Explorer-> Scripting-> Object Scriptiong Options-> Script permissions Tools->Options->Sql Server Object Explorer->Scripting->Object Scriptiong Options->Script permissions
  • 对于生产系统,您可以使用本文中描述的配置: 在SCHEMA上使用什么样的准确用途? For a production system, you can use the configuration described in this post : What GRANT USAGE ON SCHEMA exactly do?
  • 根据文档 ,这应该工作: GRANT EXECUTE ON SCHEMA::dbo TO [xxx\xxx] WITH GRANT OPTION; 但是,在我的最小测试中,它需要: GRANT CONTROL ON SCHEMA::dbo TO [xxx\xxx]; 我强烈建议您不要遵循评论中的建议,这些建议表明“授予所有权限”或使用db_owner或sysadmin可能是个好主意。 授予某人超出他们需要的权限只是一种懒惰的方式来确保您以后被解雇。 我建议任何人主张盲目地给予城堡钥匙以审查最小特权的原则 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。