File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -51,23 +51,11 @@ processResources {
5151 }
5252}
5353
54- def targetJavaVersion = 21
5554tasks. withType(JavaCompile ). configureEach {
56- // ensure that the encoding is set to UTF-8, no matter what the system default is
57- // this fixes some edge cases with special characters not displaying correctly
58- // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
59- // If Javadoc is generated, this must be specified in that task too.
60- it. options. encoding = " UTF-8"
61- if (targetJavaVersion >= 10 || JavaVersion . current(). isJava10Compatible()) {
62- it. options. release = targetJavaVersion
63- }
55+ it. options. release = 21
6456}
6557
6658java {
67- def javaVersion = JavaVersion . toVersion(targetJavaVersion)
68- if (JavaVersion . current() < javaVersion) {
69- toolchain. languageVersion = JavaLanguageVersion . of(targetJavaVersion)
70- }
7159 sourceCompatibility = JavaVersion . VERSION_21
7260 targetCompatibility = JavaVersion . VERSION_21
7361
You can’t perform that action at this time.
0 commit comments