-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated samples to the latest java and spring as of Oct 2023
- Loading branch information
Denis Zhdanov
committed
Oct 28, 2023
1 parent
7b8363c
commit 00a632a
Showing
18 changed files
with
50 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
sample/multiple-custom-gradle-distributions/client-project/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
dependencies { | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
} | ||
|
||
bootRun { | ||
main = 'com.mycompany.MyApplication' | ||
} |
2 changes: 1 addition & 1 deletion
2
...tiple-custom-gradle-distributions/client-project/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=../../../custom-distribution/build/gradle-dist/gradle-4.10-test-multi-distributions-1.0-service.zip | ||
distributionUrl=../../../custom-distribution/build/gradle-dist/gradle-8.4-test-multi-distributions-1.0-service.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
4 changes: 2 additions & 2 deletions
4
sample/multiple-custom-gradle-distributions/custom-distribution/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
plugins { | ||
id 'tech.harmonysoft.oss.custom-gradle-dist-plugin' version '1.8' | ||
id 'tech.harmonysoft.oss.custom-gradle-dist-plugin' version '1.9' | ||
} | ||
|
||
gradleDist { | ||
gradleVersion = '4.10' | ||
gradleVersion = '8.4' | ||
customDistributionVersion = '1.0' | ||
customDistributionName = 'test-multi-distributions' | ||
} |
2 changes: 1 addition & 1 deletion
2
...-custom-gradle-distributions/custom-distribution/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
1 change: 1 addition & 0 deletions
1
sample/multiple-custom-gradle-distributions/custom-distribution/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'multiple-custom-gradle-distributions' |
6 changes: 4 additions & 2 deletions
6
...-custom-gradle-distributions/custom-distribution/src/main/resources/include/common.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...tom-gradle-distributions/custom-distribution/src/main/resources/include/repository.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
repositories { | ||
gradlePluginPortal() | ||
mavenCentral() | ||
maven { | ||
url 'https://plugins.gradle.org/m2/' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
sample/single-custom-gradle-distribution/client-project/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...single-custom-gradle-distribution/client-project/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=../../../custom-distribution/build/gradle-dist/gradle-4.10-test-single-distribution-1.0.zip | ||
distributionUrl=../../../custom-distribution/build/gradle-dist/gradle-8.4-test-single-distribution-1.0.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
4 changes: 2 additions & 2 deletions
4
sample/single-custom-gradle-distribution/custom-distribution/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
plugins { | ||
id 'tech.harmonysoft.oss.custom-gradle-dist-plugin' version '1.8' | ||
id 'tech.harmonysoft.oss.custom-gradle-dist-plugin' version '1.9' | ||
} | ||
|
||
gradleDist { | ||
gradleVersion = '4.10' | ||
gradleVersion = '8.4' | ||
customDistributionVersion = '1.0' | ||
customDistributionName = 'test-single-distribution' | ||
} |
2 changes: 1 addition & 1 deletion
2
...e-custom-gradle-distribution/custom-distribution/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
1 change: 1 addition & 0 deletions
1
sample/single-custom-gradle-distribution/custom-distribution/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'single-custom-gradle-distribution' |
4 changes: 4 additions & 0 deletions
4
...stom-gradle-distribution/custom-distribution/src/main/resources/include/repository.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
repositories { | ||
gradlePluginPortal() | ||
mavenCentral() | ||
} |
27 changes: 18 additions & 9 deletions
27
...gle-custom-gradle-distribution/custom-distribution/src/main/resources/init.d/setup.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
initscript { | ||
$repository$ | ||
dependencies { | ||
classpath 'org.springframework.boot:spring-boot-gradle-plugin:3.1.5' | ||
classpath 'io.spring.gradle:dependency-management-plugin:1.1.3' | ||
} | ||
} | ||
|
||
allprojects { | ||
apply plugin: 'java' | ||
apply plugin: 'java-library' | ||
|
||
group 'com.mycompany' | ||
// There is a known Gradle bug that non-bundled plugins can't be applied by id in init scripts. | ||
// That's why we apply them by class name | ||
apply plugin: org.springframework.boot.gradle.plugin.SpringBootPlugin | ||
apply plugin: io.spring.gradle.dependencymanagement.DependencyManagementPlugin | ||
|
||
sourceCompatibility = 1.8 | ||
$repository$ | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
group 'com.mycompany' | ||
|
||
dependencies { | ||
testCompile 'junit:junit:4.12' | ||
} | ||
sourceCompatibility = 21 | ||
|
||
$repository$ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters