[ci-skip] Java version only accessible via project.extra not extra

This commit is contained in:
Ryder Belserion 2023-01-09 23:02:21 -05:00
parent 89d4f02982
commit 1130d3ee79
No known key found for this signature in database
GPG Key ID: E4441092436053A7
2 changed files with 4 additions and 4 deletions

View File

@ -17,11 +17,11 @@ repositories {
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(extra["java_version"].toString().toInt()))
toolchain.languageVersion.set(JavaLanguageVersion.of(project.extra["java_version"].toString().toInt()))
}
tasks {
compileJava {
options.release.set(extra["java_version"].toString().toInt())
options.release.set(project.extra["java_version"].toString().toInt())
}
}

View File

@ -6,7 +6,7 @@ plugins {
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(extra["java_version"].toString().toInt()))
toolchain.languageVersion.set(JavaLanguageVersion.of(project.extra["java_version"].toString().toInt()))
}
tasks {
@ -19,6 +19,6 @@ tasks {
}
compileJava {
options.release.set(extra["java_version"].toString().toInt())
options.release.set(project.extra["java_version"].toString().toInt())
}
}