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:18 UTC
[groovy] branch danielsun/tweak-build-20220408 created (now caae26d2fb)
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a change to branch danielsun/tweak-build-20220408
in repository https://gitbox.apache.org/repos/asf/groovy.git
at caae26d2fb Compile java code with JDK17
This branch includes the following new commits:
new caae26d2fb Compile java code with JDK17
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[groovy] 01/01: Compile java code with JDK17
Posted by su...@apache.org.
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)
+ }
+}