Skip to content

Commit 0a3827a

Browse files
committed
Update samples to follow current plugin implementation
1 parent 48021de commit 0a3827a

File tree

8 files changed

+24
-8
lines changed

8 files changed

+24
-8
lines changed

sample/multiple-custom-gradle-distributions/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Note: a cool feature of init scripts is that we can apply Gradle plugins from th
1717
## In Action
1818

1919
1. Build custom distribution
20-
`pushd custom-distribution; ./gradlew build; popd`
20+
`pushd custom-distribution; ./gradlew buildGradleDist; popd`
2121
2. Run the client project
2222
`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
2424
```
2525
curl 127.0.0.1:8080/ping
2626
Hi there!
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
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
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

sample/multiple-custom-gradle-distributions/custom-distribution/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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'
33
}
44

55
gradleDist {
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
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+
19
rootProject.name = 'multiple-custom-gradle-distributions'

sample/single-custom-gradle-distribution/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ This is an example of using custom Gradle distribution for projects with the sam
1515
## In Action
1616

1717
1. Build custom distribution
18-
`pushd custom-distribution; ./gradlew build; popd`
18+
`pushd custom-distribution; ./gradlew buildGradleDist; popd`
1919
2. Run the client project
2020
`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
2222
```
2323
curl 127.0.0.1:8080/ping
2424
Hi there!
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
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
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

sample/single-custom-gradle-distribution/custom-distribution/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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'
33
}
44

55
gradleDist {
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
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+
19
rootProject.name = 'single-custom-gradle-distribution'

0 commit comments

Comments
 (0)