Set Java language version to 17
This commit is contained in:
parent
15a96a909a
commit
6a0d1de8c7
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,12 @@ repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
toolchain {
|
||||||
|
languageVersion.set(JavaLanguageVersion.of(17))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
mainClass.set("com.example.MainKt")
|
mainClass.set("com.example.MainKt")
|
||||||
// project.afterEvaluate {
|
// project.afterEvaluate {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue