aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-08-21 00:41:56 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-08-21 01:03:59 +0200
commit769185e123dfd4a073161eafb58ce50bb79d6201 (patch)
treedd8f1d9c462c6bf1bff1d81d793ed5c169d5246f /build.xml
parentf83488af9c3a1e1d1906601aec60a55579dd4d90 (diff)
downloadlombok-769185e123dfd4a073161eafb58ce50bb79d6201.tar.gz
lombok-769185e123dfd4a073161eafb58ce50bb79d6201.tar.bz2
lombok-769185e123dfd4a073161eafb58ce50bb79d6201.zip
[#1806] Potential fix for java 11 in regards to module system.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml11
1 files changed, 7 insertions, 4 deletions
diff --git a/build.xml b/build.xml
index c9411d7e..c50bf644 100644
--- a/build.xml
+++ b/build.xml
@@ -112,7 +112,7 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
</target>
<target name="ensureBuildDeps" depends="config-ivy,ensureOpenJdk6Rt">
- <ivy:resolve file="buildScripts/ivy.xml" refresh="true" conf="build, javac7" />
+ <ivy:resolve file="buildScripts/ivy.xml" refresh="true" conf="build, javac7, moduleBuild" />
<ivy:retrieve />
</target>
@@ -246,15 +246,18 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
<classpath refid="build.path" />
</ivy:compile>
- <ivy:compile destdir="build/lombok" source="1.9" target="1.9">
+ <javac includeAntRuntime="false" source="1.9" target="1.9" destdir="build/lombok" modulepath="lib/moduleBuild">
<compilerarg value="-Xlint:none" />
<!-- The above is because javac9 warns about 'service interface provided but not exported or used', probably because lombok uses SPI internally, and uses the 'old' classpath discovery system for it. We're fine with this, hence, ignore this warning. -->
<src path="src/core9" />
+ </javac>
+ <mkdir dir="build/lombokMapstruct" />
+ <javac includeAntRuntime="false" source="1.9" target="1.9" destdir="build/lombokMapstruct">
<src path="src/j9stubs" />
<!-- This includes org.mapstruct.ap.spi.AstModifyingAnnotationProcessor; putting this on the classpath doesn't work (needs to be internal or a module) so we just add it and then delete the class file for convenience. -->
- </ivy:compile>
+ </javac>
<mkdir dir="build/lombok/secondaryLoading.SCL.lombok/org/mapstruct/ap/spi" />
- <move file="build/lombok/org/mapstruct/ap/spi/AstModifyingAnnotationProcessor.class" tofile="build/lombok/secondaryLoading.SCL.lombok/org/mapstruct/ap/spi/AstModifyingAnnotationProcessor.SCL.lombok" />
+ <move file="build/lombokMapstruct/org/mapstruct/ap/spi/AstModifyingAnnotationProcessor.class" tofile="build/lombok/secondaryLoading.SCL.lombok/org/mapstruct/ap/spi/AstModifyingAnnotationProcessor.SCL.lombok" />
<ivy:compile destdir="build/lombok/Class50" source="1.5" target="1.6" ecj="true" nowarn="true" includeSystemBootclasspath="true">
<bootclasspath location="build/stubs" />