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 2021/06/25 02:29:23 UTC
[groovy] branch danielsun/tweak-build updated: Bump JVM
compatibility version to 11
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch danielsun/tweak-build
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/danielsun/tweak-build by this push:
new 32c6c8a Bump JVM compatibility version to 11
32c6c8a is described below
commit 32c6c8a08899ecdb6b6e5b2f112fbc5dae6d84a5
Author: Daniel Sun <su...@apache.org>
AuthorDate: Fri Jun 25 10:28:55 2021 +0800
Bump JVM compatibility version to 11
---
build.gradle | 2 +-
buildSrc/src/main/groovy/org.apache.groovy-core.gradle | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/build.gradle b/build.gradle
index 28a08ff..8cc55d9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -229,7 +229,7 @@ tasks.named('test') {
dependsOn testExtensionModuleJar
}
-if (!JavaVersion.current().java10Compatible) {
+if (!JavaVersion.current().java11Compatible) {
logger.lifecycle '''
**************************************** WARNING ********************************************
****** You are running the build with an older JDK. NEVER try to release with 1.8. ******
diff --git a/buildSrc/src/main/groovy/org.apache.groovy-core.gradle b/buildSrc/src/main/groovy/org.apache.groovy-core.gradle
index fb52abf..4638c77 100644
--- a/buildSrc/src/main/groovy/org.apache.groovy-core.gradle
+++ b/buildSrc/src/main/groovy/org.apache.groovy-core.gradle
@@ -177,7 +177,7 @@ tasks.named('compileTestGroovy') {
tasks.register('checkCompatibility') {
doLast {
- assert JavaVersion.current().java9Compatible
+ assert JavaVersion.current().java11Compatible
}
}