diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-09-10 22:42:08 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-09-10 22:42:08 +0200 |
commit | db91eb8e9cec2686d3dc0a6e880985e070fc9430 (patch) | |
tree | 22b910e95a8972cb2f719c622cf08776d45b7e7c | |
parent | 7319256a37b1ca78d6ff736e3db2caaf59b55e68 (diff) | |
download | lombok-db91eb8e9cec2686d3dc0a6e880985e070fc9430.tar.gz lombok-db91eb8e9cec2686d3dc0a6e880985e070fc9430.tar.bz2 lombok-db91eb8e9cec2686d3dc0a6e880985e070fc9430.zip |
Fully integrating ‘ant edge-release’ to include updating the site, our mavenrepo on projectlombok.org, and the branch on git.
-rw-r--r-- | build.xml | 72 | ||||
-rw-r--r-- | buildScripts/website.ant.xml | 4 |
2 files changed, 40 insertions, 36 deletions
@@ -32,7 +32,6 @@ the common tasks and can be called on to run the main aspects of all the sub-scr <property name="rt-openjdk8" location="lib/openJDK8Environment/openjdk8_rt.jar" /> <available file="${rt-openjdk6}" property="rt-openjdk6.available" /> <available file="${rt-openjdk8}" property="rt-openjdk8.available" /> - <property environment="env"/> <path id="build.path"> <fileset dir="lib/build"> @@ -368,38 +367,6 @@ lombok.launch.AnnotationProcessorHider$ClaimingProcessor,isolating</echo> <property name="lombok.dist.built" value="true" /> </target> - <target name="-mvn-ext"> - <condition property="mvn-ext" value=".cmd" else=""> - <os family="windows" /> - </condition> - </target> - - <target name="-version-edge"> - <property name="lombok.version.mvn" value="edge-SNAPSHOT" /> - </target> - - <target name="edge-maven" depends="-version-edge,-mvn-ext,-prepare-maven" 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="deploy:deploy-file" /> - <arg value="-Dfile=dist/lombok-${lombok.version}.jar" /> - <arg value="-Dsources=dist/lombok-${lombok.version}-sources.jar" /> - <arg value="-Djavadoc=dist/lombok-${lombok.version}-javadoc.jar" /> - <arg value="-DgroupId=org.projectlombok" /> - <arg value="-DartifactId=lombok" /> - <arg value="-Dversion=edge-SNAPSHOT" /> - <arg value="-DpomFile=build/mavenPublish/pom.xml" /> - <arg value="-Durl=file://${basedir}/build/edgePublish" /> - </exec> - <condition property="mvn-notfound" value="true"> - <not><isset property="mvn-result" /></not> - </condition> - <fail message="mvn is not on your path and/or MAVEN_HOME is not set. Add mvn to your path or set MAVEN_HOME to continue." if="mvn-notfound" /> - </target> - <target name="dist-utils" description="Builds lombok-utils.jar, which is a library used by i.e. lombok.ast project." depends="version, compile"> <mkdir dir="dist" /> <jar destfile="dist/lombok-utils-${lombok.version}.jar"> @@ -929,7 +896,7 @@ You can also create your own by writing a 'testenvironment.properties' file. The <target name="publish-all" depends="clean, version, website-publish, maven-publish, publish" description="Publishes lombok itself, updates the maven repository and the website." /> - <target name="edge-release" depends="config-ssh, clean, version, dist" + <target name="edge-release" depends="config-ssh, clean, version, dist, make-edge-as-maven_snapshot_repo" description="Publishes an edge release for those who need to test a cutting edge build."> <ant antfile="buildScripts/website.ant.xml" target="edgeRelease" inheritAll="false"> <property name="lombok.version" value="${lombok.version}" /> @@ -991,7 +958,42 @@ You can also create your own by writing a 'testenvironment.properties' file. The <property name="ssh.keyfile" value="${ssh.keyfile}" /> </ant> </target> - + + <target name="-mvn-ext"> + <condition property="mvn-ext" value=".cmd" else=""> + <os family="windows" /> + </condition> + </target> + + <target name="-version-edge"> + <property name="lombok.version.mvn" value="edge-SNAPSHOT" /> + </target> + + <target name="make-edge-as-maven_snapshot_repo" depends="-version-edge,-mvn-ext,-prepare-maven" description="Create a maven repo for the current snapshot into a build dir. The intent is for you to put that on a server someplace. Will invoke your local mvn installation."> + <property environment="env" /> + <delete quiet="true" dir="build/edge-releases" /> + <mkdir dir="build/edge-releases" /> + <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="deploy:deploy-file" /> + <arg value="-Dfile=dist/lombok-${lombok.version}.jar" /> + <arg value="-Dsources=dist/lombok-${lombok.version}-sources.jar" /> + <arg value="-Djavadoc=dist/lombok-${lombok.version}-javadoc.jar" /> + <arg value="-DgroupId=org.projectlombok" /> + <arg value="-DartifactId=lombok" /> + <arg value="-Dversion=edge-SNAPSHOT" /> + <arg value="-DpomFile=build/mavenPublish/pom.xml" /> + <arg value="-Durl=file://${basedir}/build/edge-releases" /> + </exec> + <condition property="mvn-notfound" value="true"> + <not><isset property="mvn-result" /></not> + </condition> + <fail message="mvn is not on your path and/or MAVEN_HOME is not set. Add mvn to your path or set MAVEN_HOME to continue." if="mvn-notfound" /> + </target> + <target name="testAp-compile" depends="ensureBuildDeps"> <delete file="build/testAP/META-INF/services/javax.annotation.processing.Processor" quiet="true" /> <ivy:compile destdir="build/testAP" source="1.7" target="1.7"> diff --git a/buildScripts/website.ant.xml b/buildScripts/website.ant.xml index f7a86fd4..a799e7fe 100644 --- a/buildScripts/website.ant.xml +++ b/buildScripts/website.ant.xml @@ -185,9 +185,11 @@ such as applying the templates to produce the website, converting the changelog <arg value="build/website-edge/download-edge.html" /> </java> <copy file="dist/lombok.jar" tofile="build/website-edge/lombok-edge.jar" /> - <tar destfile="dist/website-edge.tar.bz2" compression="bzip2"> <tarfileset dir="build/website-edge" /> + <tarfileset dir="build"> + <include name="edge-releases/**" /> + </tarfileset> </tar> </target> |