Set Java language version to 17
This commit is contained in:
parent
5fa475a726
commit
03c749de68
1 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
id("application")
|
||||
id("com.github.ben-manes.versions") version "0.51.0"
|
||||
|
@ -28,6 +30,12 @@ repositories {
|
|||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("com.example.App")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue