通过Gradle

时间:2015-06-16 14:37:01

标签: gradle

我希望Gradle通过添加通过第二个配置加载的依赖项的依赖项来计算配置的依赖项。

两个Gradle项目的示例:

dependency/build.gradle

configurations {
  other
}
dependencies {
  other "bar:artifact1:0.4"
}

top/build.gradle

configurations {
  other
  modules
}
dependencies {
  modules "foo:dependency:1.0"
  other "bar:artifact2:0.1"
}

因此top项目通过dependency配置取决于modules,但我希望other中的top配置同时包含"bar:artifact1:0.4" "bar:artifact2:0.1" }和other

在我的具体案例中,other依赖项列在每个工件的Ivy文件中。我想收集项目所依赖的所有工件的func myFunc<T>(param: T) {} 依赖项。

这不是一个多项目构建,但其他项目的工件是从远程存储库加载的。

有没有办法配置Gradle以包含所有传递依赖项的配置?

0 个答案:

没有答案
相关问题