aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisagh Moayyed <mmoayyed@unicon.net>2018-07-17 15:59:04 +0430
committerRoel Spilker <r.spilker@gmail.com>2018-08-20 21:43:29 +0200
commit49e81a167fc902a2ddf52e073ec638a81d37a8bf (patch)
treef9a1f55b22c2e6d19438cdcf5fdcccd53e1c016b
parent13dcb6914507f56edfa5d5f24352d8e7a4b25bef (diff)
downloadlombok-49e81a167fc902a2ddf52e073ec638a81d37a8bf.tar.gz
lombok-49e81a167fc902a2ddf52e073ec638a81d37a8bf.tar.bz2
lombok-49e81a167fc902a2ddf52e073ec638a81d37a8bf.zip
WIP - allow jitpack to build lombok using JDK 9
-rw-r--r--build.xml18
-rw-r--r--jitpack.yml11
2 files changed, 21 insertions, 8 deletions
diff --git a/build.xml b/build.xml
index c1d13bd7..cda31318 100644
--- a/build.xml
+++ b/build.xml
@@ -162,17 +162,21 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
</target>
<target name="-ensureJdk9">
+ <echo message="Java version: ${ant.java.version}" />
+ <echo message="Java version: ${java.version}" />
+
<condition property="java.version.insufficient">
<or>
- <equals arg1="${ant.java.version}" arg2="1.2" />
- <equals arg1="${ant.java.version}" arg2="1.3" />
- <equals arg1="${ant.java.version}" arg2="1.4" />
- <equals arg1="${ant.java.version}" arg2="1.5" />
- <equals arg1="${ant.java.version}" arg2="1.6" />
- <equals arg1="${ant.java.version}" arg2="1.7" />
- <equals arg1="${ant.java.version}" arg2="1.8" />
+ <equals arg1="${java.version}" arg2="1.2" />
+ <equals arg1="${java.version}" arg2="1.3" />
+ <equals arg1="${java.version}" arg2="1.4" />
+ <equals arg1="${java.version}" arg2="1.5" />
+ <equals arg1="${java.version}" arg2="1.6" />
+ <equals arg1="${java.version}" arg2="1.7" />
+ <equals arg1="${java.version}" arg2="1.8" />
</or>
</condition>
+ <echo message="Java version insufficient: ${java.version.insufficient}" />
<fail if="java.version.insufficient">To compile lombok, you need JDK9 or higher; lombok requires this version because it's rather difficult to produce lombok builds that are compatible on JDK9 without at least building with JDK9. Sorry about that.</fail>
</target>
diff --git a/jitpack.yml b/jitpack.yml
index 3dc448d5..7f0593e1 100644
--- a/jitpack.yml
+++ b/jitpack.yml
@@ -1,2 +1,11 @@
jdk:
- - openjdk9
+- openjdk9
+before_install:
+- echo "*******JAVA_HOME*******\n"
+- export JAVA_HOME=/usr/lib/jvm/java-9-oracle
+- echo $JAVA_HOME
+- echo "******Ant Version********"
+- ant -version
+- echo "*****Java Version*********"
+- java -version
+- echo "****************************"