0

Referred this link

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.

Siddharth
  • 9,349
  • 16
  • 86
  • 148
  • How does your `settings.gradle` look? You can add a gradle project at any arbitrary path as a subproject to your settings.gradle. See [here](http://stackoverflow.com/a/19303545/745574) for an example. You do not need a build.gradle in workspace. – RaGe Nov 11 '16 at 13:08

1 Answers1

0

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.

Rotem
  • 1,381
  • 1
  • 11
  • 23