I have about 8 projects that I need to build is a particular order to finally build my rest web services war
. My project structure is like this
workspace/commons/projecta with gradle.build
workspace/commons/projectb with gradle.build
workspace/commons/projectc with gradle.build
workspace/war/restapi with gradle.build
Now I have 2 choices, create a shell script in use a shell script OR to use gradle dependencies. But the documentation link above, does not mention how to specify dependencies ../commons/projectc
. The syntax seems to be only forward looking. Seems like I must create a build.gradle
in workspace.
Using the Gradle.build file is an easy way to handle your problem.
A syntax example:
dependencies {
compile 'org.apache.shiro:shiro-core:1.2.3'
}
In the example above I add the Shiro-Core to my dependencies.
Try the following link Dependency Management Basics .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.