File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
buildSrc/src/test/java/org/springframework/boot/build
spring-boot-project/spring-boot-docs/src/docs/antora/modules/tutorial/pages/first-application Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ void jarIncludesLegalFiles() throws IOException {
76
76
out .println (" id 'org.springframework.boot.conventions'" );
77
77
out .println ("}" );
78
78
out .println ("version = '1.2.3'" );
79
- out .println ("sourceCompatibility = '17'" );
79
+ out .println ("java {" );
80
+ out .println (" sourceCompatibility = '17'" );
81
+ out .println ("}" );
80
82
out .println ("description 'Test project for manifest customization'" );
81
83
out .println ("jar.archiveFileName = 'test.jar'" );
82
84
}
@@ -106,7 +108,9 @@ void sourceJarIsBuilt() throws IOException {
106
108
out .println (" id 'org.springframework.boot.conventions'" );
107
109
out .println ("}" );
108
110
out .println ("version = '1.2.3'" );
109
- out .println ("sourceCompatibility = '17'" );
111
+ out .println ("java {" );
112
+ out .println (" sourceCompatibility = '17'" );
113
+ out .println ("}" );
110
114
out .println ("description 'Test'" );
111
115
}
112
116
runGradle ("assemble" );
@@ -135,7 +139,9 @@ void javadocJarIsBuilt() throws IOException {
135
139
out .println (" id 'org.springframework.boot.conventions'" );
136
140
out .println ("}" );
137
141
out .println ("version = '1.2.3'" );
138
- out .println ("sourceCompatibility = '17'" );
142
+ out .println ("java {" );
143
+ out .println (" sourceCompatibility = '17'" );
144
+ out .println ("}" );
139
145
out .println ("description 'Test'" );
140
146
}
141
147
runGradle ("assemble" );
Original file line number Diff line number Diff line change @@ -180,7 +180,10 @@ apply plugin: 'io.spring.dependency-management'
180
180
181
181
group = 'com.example'
182
182
version = '0.0.1-SNAPSHOT'
183
- sourceCompatibility = '17'
183
+
184
+ java {
185
+ sourceCompatibility = '17'
186
+ }
184
187
185
188
repositories {
186
189
mavenCentral()
You can’t perform that action at this time.
0 commit comments