Skip to content

Commit e3b1d16

Browse files
committed
Use JDK 17
Issue gh-611
1 parent 20ffda2 commit e3b1d16

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

buildSrc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id 'com.apollographql.apollo' version '2.4.5'
66
}
77

8-
sourceCompatibility = JavaVersion.VERSION_11
8+
sourceCompatibility = JavaVersion.VERSION_17
99

1010
repositories {
1111
gradlePluginPortal()

buildSrc/src/main/groovy/io/spring/gradle/convention/SpringModulePlugin.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
* the License.
1515
*/
1616

17-
package io.spring.gradle.convention;
17+
package io.spring.gradle.convention
1818

19+
import org.gradle.api.JavaVersion;
1920
import org.gradle.api.Project
2021
import org.gradle.api.plugins.JavaLibraryPlugin;
2122
import org.gradle.api.plugins.MavenPlugin;
@@ -40,6 +41,7 @@ class SpringModulePlugin extends AbstractSpringJavaPlugin {
4041
if (!Utils.isRelease(project)) {
4142
deployArtifacts.dependsOn project.tasks.artifactoryPublish
4243
}
44+
project.java.sourceCompatibility = JavaVersion.VERSION_17
4345
}
4446

4547
}

gradle/java.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
apply plugin: 'java'
22
apply plugin: 'org.springframework.optional'
33

4+
sourceCompatibility = '17'
5+
targetCompatibility = '17'
6+
47
ext.apacheDsVersion = '1.5.5'
58
ext.springVersion = '6.0.0-SNAPSHOT'
69
ext.springDataVersion = '3.0.0-SNAPSHOT'

0 commit comments

Comments
 (0)