Skip to content

Commit

Permalink
Update to Gradle 8.10.2
Browse files Browse the repository at this point in the history
Issue gh-933
  • Loading branch information
jzheaux committed Nov 22, 2024
1 parent 2da0139 commit c82fd45
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,16 @@ public abstract class AbstractSpringJavaPlugin implements Plugin<Project> {
project.test {
useJUnitPlatform()
}
project.java.sourceCompatibility = toolchainVersion(project)
additionalPlugins(project);
}

protected abstract void additionalPlugins(Project project);

private Integer toolchainVersion(Project project) {
if (project.hasProperty("testToolchain")) {
return project.property("testToolchain").toString().toInteger();
}
return 17;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class TestsConfigurationPlugin implements Plugin<Project> {
}

project.tasks.create('testJar', Jar) {
classifier = 'test'
archiveClassifier = 'test'
from project.sourceSets.test.output
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
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-7.6.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit c82fd45

Please sign in to comment.