IntelliJ gradle add module dependency

后端 未结 4 503
一生所求
一生所求 2020-12-01 03:01

Using IntelliJ 2016.2.
Using Gradle 2.14.1

I have 2 projects, each with their own build.gradle files and separate directory structures:

myLib (me         


        
4条回答
  •  星月不相逢
    2020-12-01 03:35

    Finally Gradle 3.1 has sorted out this issue. Composite builds are now supported natively. More here. In short add this line to sandbox settings.gradle file-

    includeBuild '/myLib'
    

    If you can't upgrade Gradle, then the only hope for you is to publish mylib artifact to local maven repo and add mavenLocal() to sandbox/build.gradle.

提交回复
热议问题