Skip to content

Commit eb71d7b

Browse files
committed
Use gradle Java configuration block
1 parent 6f2b5fd commit eb71d7b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

buildSrc/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ plugins {
33
id "java"
44
}
55

6-
sourceCompatibility = JavaVersion.VERSION_17;
6+
java {
7+
sourceCompatibility = JavaVersion.VERSION_17
8+
}
79

810
repositories {
911
gradlePluginPortal()

docs/src/reference/asciidoc/getting-started.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ apply plugin: 'io.spring.dependency-management'
101101
102102
group = 'com.example'
103103
version = '0.0.1-SNAPSHOT'
104-
sourceCompatibility = 1.8
104+
105+
java {
106+
sourceCompatibility = JavaVersion.VERSION_1_8
107+
}
105108
106109
repositories {
107110
mavenCentral()

0 commit comments

Comments
 (0)