You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/04/07 18:18:19 UTC

[groovy] 01/01: Compile java code with JDK17

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch danielsun/tweak-build-20220408
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit caae26d2fbe2fb38f6c05c4aff1ed06deb3b7c38
Author: Daniel Sun <su...@apache.org>
AuthorDate: Fri Apr 8 02:17:58 2022 +0800

    Compile java code with JDK17
---
 build.gradle | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/build.gradle b/build.gradle
index 99264cd5ac..c37949e018 100644
--- a/build.gradle
+++ b/build.gradle
@@ -281,3 +281,10 @@ tasks.named("dependencyUpdates")?.configure {
         !(it.currentVersion.toLowerCase() ==~ UNSTABLE) && it.candidate.version.toLowerCase() ==~ UNSTABLE
     }
 }
+
+// Compile java code with JDK17, which is align with the JDK version used to distribute official releases
+java {
+    toolchain {
+        languageVersion = JavaLanguageVersion.of(17)
+    }
+}