In a multi-project gradle build, you have rootProject and subprojects. The combination of both is all projects. RootProject is the beginning of the build. The usual template - rootProject has no code, and subprojects are java projects. In this case, you apply the java plugin only to subprojects:
subprojects { apply plugin: 'java' }
This will be equivalent to the maven aggregate pom project, which only builds submodules.
As for the two syntaxes, they do the same thing. The first one just looks better.
Justin Ryan Aug 22 '12 at 16:14 2012-08-22 16:14
source share