diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-08-28 00:01:10 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-08-28 00:01:10 +0200 |
commit | 381f676e9911d693233a55c53922c80c3f2d109c (patch) | |
tree | 07e6b2a745cc65ae06de6ed7c4a72cadbaef03a2 /build.xml | |
parent | 89c4688790e0b17ae28b41f45b0f12e8aa6604d9 (diff) | |
download | lombok-381f676e9911d693233a55c53922c80c3f2d109c.tar.gz lombok-381f676e9911d693233a55c53922c80c3f2d109c.tar.bz2 lombok-381f676e9911d693233a55c53922c80c3f2d109c.zip |
Generate pom in a separate target for jitpack
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -374,11 +374,8 @@ lombok.launch.AnnotationProcessorHider$ClaimingProcessor,isolating</echo> </condition> </target> - <target name="install-maven" depends="version,dist,-mvn-ext" description="Install THE lombok.jar into the local maven repository using Apache Maven"> - <condition property="mvn-exe" value="${env.MAVEN_HOME}/bin/mvn${mvn-ext}" else="mvn${mvn-ext}"> - <isset property="env.MAVEN_HOME" /> - </condition> - <echo message="Lombok version: ${lombok.version}-SNAPSHOT" /> + <target name="generate-pom" depends="version,dist"> + <echo message="Lombok version: ${lombok.version}-SNAPSHOT" /> <echo file="pom.xml"><![CDATA[<project> <modelVersion>4.0.0</modelVersion> @@ -386,7 +383,13 @@ lombok.launch.AnnotationProcessorHider$ClaimingProcessor,isolating</echo> <artifactId>lombok</artifactId> <version>]]>${lombok.version}-SNAPSHOT<![CDATA[</version> </project>]]></echo> - + </target> + + <target name="install-maven" depends="generate-pom,-mvn-ext" description="Install THE lombok.jar into the local maven repository using Apache Maven"> + <condition property="mvn-exe" value="${env.MAVEN_HOME}/bin/mvn${mvn-ext}" else="mvn${mvn-ext}"> + <isset property="env.MAVEN_HOME" /> + </condition> + <exec executable="${mvn-exe}" failifexecutionfails="false" resultproperty="mvn-result"> <arg value="install:install-file"/> <arg value="-Dfile=dist/lombok-${lombok.version}.jar"/> @@ -395,7 +398,6 @@ lombok.launch.AnnotationProcessorHider$ClaimingProcessor,isolating</echo> <arg value="-Dversion=${lombok.version}-SNAPSHOT"/> <arg value="-Dpackaging=jar"/> </exec> - <delete file="pom.xml" quiet="true" /> <condition property="mvn-notfound" value="true"> <not><isset property="mvn-result" /></not> </condition> |