Set Java language version to 17
This commit is contained in:
parent
36422cbf45
commit
18582f89c3
1 changed files with 7 additions and 1 deletions
|
@ -27,13 +27,19 @@ repositories {
|
|||
mavenCentral()
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("com.example.Main")
|
||||
}
|
||||
|
||||
kapt {
|
||||
arguments {
|
||||
arg("semver.project.dir", projectDir)
|
||||
arg("semver.project.dir", projectDir.absolutePath)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue