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/07 22:50:51 UTC

[geode] branch feature/GEODE-6168 created (now 3a5c810)

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

zhouxj pushed a change to branch feature/GEODE-6168
in repository https://gitbox.apache.org/repos/asf/geode.git.


      at 3a5c810  GEODE-6168: verify java version should consider the possible "-"

This branch includes the following new commits:

     new 3a5c810  GEODE-6168: verify java version should consider the possible "-"

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.



[geode] 01/01: GEODE-6168: verify java version should consider the possible "-"

Posted by zh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zhouxj pushed a commit to branch feature/GEODE-6168
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 3a5c81021db295e3c6587b57f75272762313a2cd
Author: zhouxh <gz...@pivotal.io>
AuthorDate: Fri Dec 7 14:49:47 2018 -0800

    GEODE-6168: verify java version should consider the possible "-"
---
 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)
   }