fix deprecation

This commit is contained in:
mcrcortex
2025-10-20 09:59:35 +10:00
parent b59cf5d700
commit b465871bd7
2 changed files with 7 additions and 8 deletions

View File

@@ -141,14 +141,9 @@ dependencies {
def targetJavaVersion = 21
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release = targetJavaVersion
}
it.options.release = targetJavaVersion
it.options.deprecation = true
}
java {