You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by zh...@apache.org on 2018/12/08 00:33:12 UTC
[geode] branch develop updated: GEODE-6168: verify java version
should consider the possible "-" (#2976)
This is an automated email from the ASF dual-hosted git repository.
zhouxj pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 2d7b30c GEODE-6168: verify java version should consider the possible "-" (#2976)
2d7b30c is described below
commit 2d7b30c21d800fc1dbff866b855cc96c3937097d
Author: Xiaojian Zhou <ge...@users.noreply.github.com>
AuthorDate: Fri Dec 7 16:33:02 2018 -0800
GEODE-6168: verify java version should consider the possible "-" (#2976)
---
gradle/java.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gradle/java.gradle b/gradle/java.gradle
index c2cd072..874e577 100644
--- a/gradle/java.gradle
+++ b/gradle/java.gradle
@@ -33,7 +33,7 @@ subprojects {
}
String javaVersion = System.properties['java.version']
- if (javaVersion.startsWith("1.8.0") && javaVersion.split("_")[1].toInteger() < 121) {
+ if (javaVersion.startsWith("1.8.0") && javaVersion.split("-")[0].split("_")[1].toInteger() < 121) {
throw new GradleException("Java version 1.8.0_121 or later required, but was " + javaVersion)
}