Skip to content

Commit a132cbe

Browse files
committed
dev content review comments fixed
Signed-off-by: Arun Venmany <[email protected]>
1 parent c5ffa11 commit a132cbe

File tree

8 files changed

+28
-25
lines changed

8 files changed

+28
-25
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ start/build.gradle
199199
include::finish/build.gradle[]
200200
----
201201

202-
Set the [hotspot=packaging file=1]`basic configuration` for the project. Apply [gradle-java-plugin file=1]`gradle-java-plugin` to all sub projects. This allows each child module to inherit the plug-ins, so that you can use the these to develop the modules.
202+
Set the [hotspot=packaging file=1]`common configuration` for the project. Apply [gradle-java-plugin file=1]`gradle-java-plugin` to all sub projects. This allows each child module to inherit the plug-ins, so that you can use the these to develop the modules.
203203

204204

205205

finish/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ allprojects {
66
subprojects {
77
apply plugin: 'java'
88

9-
sourceCompatibility = JavaVersion.VERSION_11
10-
targetCompatibility = JavaVersion.VERSION_11
9+
java {
10+
sourceCompatibility = JavaVersion.VERSION_11
11+
targetCompatibility = JavaVersion.VERSION_11
12+
}
1113

1214
tasks.withType(JavaCompile).configureEach {
1315
options.encoding = 'UTF-8'

finish/ear/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ buildscript {
2121
}
2222
}
2323

24-
repositories {
25-
mavenLocal()
26-
mavenCentral()
27-
}
2824

2925
dependencies {
3026
// tag::war[]

finish/jar/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ tasks.withType(JavaCompile).configureEach {
66
options.encoding = 'UTF-8'
77
}
88

9-
repositories {
10-
mavenLocal()
11-
mavenCentral()
12-
}
13-
149
dependencies {
1510
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
1611
}

start/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ allprojects {
66
subprojects {
77
apply plugin: 'java'
88

9-
sourceCompatibility = JavaVersion.VERSION_11
10-
targetCompatibility = JavaVersion.VERSION_11
9+
java {
10+
sourceCompatibility = JavaVersion.VERSION_11
11+
targetCompatibility = JavaVersion.VERSION_11
12+
}
1113

1214
tasks.withType(JavaCompile).configureEach {
1315
options.encoding = 'UTF-8'

start/ear/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ buildscript {
1414
}
1515
}
1616

17-
repositories {
18-
mavenLocal()
19-
mavenCentral()
20-
}
21-
2217
dependencies {
2318
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
2419
}

start/jar/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ description = 'JAR Module'
55
tasks.withType(JavaCompile).configureEach {
66
options.encoding = 'UTF-8'
77
}
8-
9-
repositories {
10-
mavenLocal()
11-
mavenCentral()
12-
}
13-
148
dependencies {
159
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
1610
}

start/settings.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
11
rootProject.name = 'guide-gradle-multimodules'
2+
// tag::includeJar[]
3+
include ':jar'
4+
// end::includeJar[]
5+
// tag::includeWar[]
6+
include ':war'
7+
// end::includeWar[]
8+
// tag::includeEar[]
9+
include ':ear'
10+
// end::includeEar[]
11+
12+
// tag::jarDir[]
13+
project(':jar').projectDir = "$rootDir/jar" as File
14+
// end::jarDir[]
15+
// tag::warDir[]
16+
project(':war').projectDir = "$rootDir/war" as File
17+
// end::warDir[]
18+
// tag::earDir[]
19+
project(':ear').projectDir = "$rootDir/ear" as File
20+
// end::earDir[]

0 commit comments

Comments
 (0)