File tree 8 files changed +24
-8
lines changed
multiple-custom-gradle-distributions
client-project/gradle/wrapper
single-custom-gradle-distribution
client-project/gradle/wrapper
8 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ Note: a cool feature of init scripts is that we can apply Gradle plugins from th
17
17
## In Action
18
18
19
19
1 . Build custom distribution
20
- ` pushd custom-distribution; ./gradlew build ; popd `
20
+ ` pushd custom-distribution; ./gradlew buildGradleDist ; popd `
21
21
2 . Run the client project
22
22
` pushd client-project; ./gradlew bootRun; popd `
23
- 3 . Call a web server server started by the client project and ensure that it works
23
+ 3 . Call a web server started by the client project and ensure that it works
24
24
```
25
25
curl 127.0.0.1:8080/ping
26
26
Hi there!
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =../../../custom-distribution/build/gradle-dist/gradle-8.4-test-multi-distributions-1.0-service.zip
3
+ distributionUrl =../../../custom-distribution/build/gradle-dist/gradle-8.4-test-multi-distributions-1.0-service-bin .zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1
1
plugins {
2
- id ' tech.harmonysoft.oss.custom-gradle-dist-plugin' version ' 1.9 '
2
+ id ' tech.harmonysoft.oss.custom-gradle-dist-plugin' version ' 1.17 '
3
3
}
4
4
5
5
gradleDist {
Original file line number Diff line number Diff line change
1
+ pluginManagement {
2
+ includeBuild(' ../../../' ) {
3
+ logger. warn(
4
+ ' Replaced indicated version of the Plugin with the current implementation from the root project directory.'
5
+ )
6
+ }
7
+ }
8
+
1
9
rootProject. name = ' multiple-custom-gradle-distributions'
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ This is an example of using custom Gradle distribution for projects with the sam
15
15
## In Action
16
16
17
17
1 . Build custom distribution
18
- ` pushd custom-distribution; ./gradlew build ; popd `
18
+ ` pushd custom-distribution; ./gradlew buildGradleDist ; popd `
19
19
2 . Run the client project
20
20
` pushd client-project; ./gradlew bootRun; popd `
21
- 3 . Call a web server server started by the client project and ensure that it works
21
+ 3 . Call a web server started by the client project and ensure that it works
22
22
```
23
23
curl 127.0.0.1:8080/ping
24
24
Hi there!
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =../../../custom-distribution/build/gradle-dist/gradle-8.4-test-single-distribution-1.0.zip
3
+ distributionUrl =../../../custom-distribution/build/gradle-dist/gradle-8.4-test-single-distribution-1.0-bin .zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1
1
plugins {
2
- id ' tech.harmonysoft.oss.custom-gradle-dist-plugin' version ' 1.9 '
2
+ id ' tech.harmonysoft.oss.custom-gradle-dist-plugin' version ' 1.17 '
3
3
}
4
4
5
5
gradleDist {
Original file line number Diff line number Diff line change
1
+ pluginManagement {
2
+ includeBuild(' ../../../' ) {
3
+ logger. warn(
4
+ ' Replaced indicated version of the Plugin with the current implementation from the root project directory.'
5
+ )
6
+ }
7
+ }
8
+
1
9
rootProject. name = ' single-custom-gradle-distribution'
You can’t perform that action at this time.
0 commit comments