File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -226,16 +226,30 @@ Java 17 or later is required. Below is an example of how to use this version:
226
226
<maven.compiler.target>17</maven.compiler.target>
227
227
</properties>
228
228
----
229
+ [source,kotlin]
230
+ ----
231
+ <source-info group="Gradle (Kotlin DSL)"></source-info>
232
+ plugins {
233
+ java
234
+ }
235
+
236
+ java {
237
+ toolchain {
238
+ languageVersion = JavaLanguageVersion.of(17)
239
+ }
240
+ }
241
+ ----
229
242
[source,groovy]
230
243
----
231
- <source-info group="Groovy"></source-info>
244
+ <source-info group="Gradle ( Groovy DSL) "></source-info>
232
245
plugins {
233
246
id 'java'
234
247
}
235
248
236
249
java {
237
- sourceCompatibility = 17
238
- targetCompatibility = 17
250
+ toolchain {
251
+ languageVersion = JavaLanguageVersion.of(17)
252
+ }
239
253
}
240
254
----
241
255
--
You can’t perform that action at this time.
0 commit comments