aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2018-08-28 00:01:10 +0200
committerRoel Spilker <r.spilker@gmail.com>2018-08-28 00:01:10 +0200
commit381f676e9911d693233a55c53922c80c3f2d109c (patch)
tree07e6b2a745cc65ae06de6ed7c4a72cadbaef03a2 /build.xml
parent89c4688790e0b17ae28b41f45b0f12e8aa6604d9 (diff)
downloadlombok-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.xml16
1 files changed, 9 insertions, 7 deletions
diff --git a/build.xml b/build.xml
index 92cbe182..06a9a961 100644
--- a/build.xml
+++ b/build.xml
@@ -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>