Skip to content

Commit

Permalink
[build] #2616 have lombok-mapstruct-binding contain a java module fil…
Browse files Browse the repository at this point in the history
…e and java8 class files.
  • Loading branch information
rspilker committed Dec 4, 2020
1 parent 2b35568 commit 8cfe4c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion buildScripts/compile.ant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
This buildfile is part of projectlombok.org. It takes care of compiling and building lombok itself.
</description>

<property name="mapstruct-binding.version" value="0.1.0" />
<property name="mapstruct-binding.version" value="0.2.0" />

<!-- compiles just 'version.java' and runs the produced class file, setting up the various version properties -->
<target name="version" depends="ipp.setup, deps.jdk-runtime" description="Shows the version number" unless="lombok.version">
Expand Down
14 changes: 7 additions & 7 deletions buildScripts/mapstructBinding.ant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ exists as a separate dependency solely because it is itself dependent on both lo

<target name="-mapstructBinding.compile">
<mkdir dir="build/mapstruct" />
<javac includeAntRuntime="false" source="1.9" target="1.9" destdir="build/mapstruct">
<javac includeAntRuntime="false" source="1.8" target="1.8" destdir="build/mapstruct">
<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. -->
</javac>
<mkdir dir="build/lombok/secondaryLoading.SCL.lombok/org/mapstruct/ap/spi" />
<move file="build/mapstruct/org/mapstruct/ap/spi/AstModifyingAnnotationProcessor.class" tofile="build/lombok/secondaryLoading.SCL.lombok/org/mapstruct/ap/spi/AstModifyingAnnotationProcessor.SCL.lombok" />
</target>

<target name="-mapstructBinding.prepare" depends="-mapstructBinding.compile">
Expand Down Expand Up @@ -80,11 +77,14 @@ exists as a separate dependency solely because it is itself dependent on both lo
<mkdir dir="build/mapstruct-binding/classes" />
<echo file="build/mapstruct-binding/classes/META-INF/services/org.mapstruct.ap.spi.AstModifyingAnnotationProcessor">lombok.mapstruct.NotifierHider$AstModificationNotifier</echo>

<javac includeAntRuntime="false" source="1.8" target="1.8" destdir="build/mapstruct-binding/classes" modulepath="build/mapstruct-module-path">
<src path="src/bindings/mapstruct" excludes="module-info.java"/>
<javac includeAntRuntime="false" source="1.8" target="1.8" destdir="build/mapstruct-binding/classes">
<src path="src/bindings/mapstruct" />
<exclude name="module-info.java" />
<classpath location="build/mapstruct" />
</javac>
<javac includeAntRuntime="false" source="1.9" target="1.9" destdir="build/mapstruct-binding/classes" modulepath="build/mapstruct-module-path">
<src path="src/bindings/mapstruct" includes="module-info.java"/>
<src path="src/bindings/mapstruct" />
<include name="module-info.java" />
</javac>
<jar destfile="dist/lombok-mapstruct-binding-${mapstruct-binding.version}.jar" basedir="build/mapstruct-binding/classes" includes="**" />
</target>
Expand Down

0 comments on commit 8cfe4c7

Please sign in to comment.