如何处理Gradle和多项目配置? [英] How to deal with Gradle and multi project configuration?
本文介绍了如何处理Gradle和多项目配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有几个项目[A,B,C],A取决于B和C.
我想将项目移至多项目构建配置。今天我的项目生活在SVN上,完全孤立。
我想知道是否使用多项目构建功能的唯一方法是将项目移动到同一个存储库,设想一下:
MyPorject
--A
---- build.gradle
--B
--- build.gradle
--C
---- build.gradle
--build.gradle
欢迎提出建议!
Thanks!
解决方案
好吧,我从Gradle项目的一个人那里得到了3个选项:
- 总是在相同的相对位置检出所有三个项目,并将其中一个作为根目录
- 使用Subversion外部
-
- 将所有项目重新定位到共享的Subversion存储库 http://forums.gradle.org/gradle/topics/how_to_deal_with_multi_project_configuration
I have several projects [A, B, C], A depends on B and C.
I want to move my projects to a multi project build configuration. Today my projects live on SVN, completely isolated.
I was wondering if the only way to use the multi project build feature is if I move the projects to the same repository, imagine something like:
MyPorject --A ----build.gradle --B ---build.gradle --C ----build.gradle --build.gradle
Suggestions are welcome! Thanks!
解决方案Well, I got 3 options from one guys of the Gradle project:
- Always check out all three projects in the same relative locations, and make one of them the root
- Use Subversion externals
- Relocate all projects to a shared Subversion repository
Here http://forums.gradle.org/gradle/topics/how_to_deal_with_multi_project_configuration
这篇关于如何处理Gradle和多项目配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文