diff options
Diffstat (limited to 'buildScripts/mapstructBinding.ant.xml')
-rw-r--r-- | buildScripts/mapstructBinding.ant.xml | 46 |
1 files changed, 40 insertions, 6 deletions
diff --git a/buildScripts/mapstructBinding.ant.xml b/buildScripts/mapstructBinding.ant.xml index c59b84da..d7c52dc3 100644 --- a/buildScripts/mapstructBinding.ant.xml +++ b/buildScripts/mapstructBinding.ant.xml @@ -26,14 +26,11 @@ version on mavencentral is the last version that is ever needed; the code itself exists as a separate dependency solely because it is itself dependent on both lombok and mapstruct. </description> - <target name="-mapstructBinding.compile"> + <target name="-mapstructBinding.compile" depends="-setup.build"> <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"> @@ -76,12 +73,18 @@ exists as a separate dependency solely because it is itself dependent on both lo <jar destfile="dist/lombok-mapstruct-binding-${mapstruct-binding.version}-javadoc.jar" basedir="build/mapstruct-binding/api" includes="**" /> </target> - <target name="-mapstructBinding.jar" depends="dist,-mapstructBinding.prepare"> + <target name="-mapstructBinding.jar" depends="dist, -mapstructBinding.prepare"> <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"> + <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" /> + <include name="module-info.java" /> </javac> <jar destfile="dist/lombok-mapstruct-binding-${mapstruct-binding.version}.jar" basedir="build/mapstruct-binding/classes" includes="**" /> </target> @@ -93,6 +96,37 @@ exists as a separate dependency solely because it is itself dependent on both lo <target name="mapstructBinding.pack" depends="dist,-mapstructBinding.jar,-mapstructBinding.doc,-mapstructBinding.src"> </target> + <target name="mapstructBinding.publish" depends="mapstructBinding.pack, setup.ssh"> + <tar destfile="dist/mavenPublish-mapstructBinding.tar.bz2" compression="bzip2"> + <tarfileset dir="dist"> + <include name="lombok-mapstruct-binding-${mapstruct-binding.version}.jar" /> + <include name="lombok-mapstruct-binding-${mapstruct-binding.version}-sources.jar" /> + <include name="lombok-mapstruct-binding-${mapstruct-binding.version}-javadoc.jar" /> + </tarfileset> + <tarfileset dir="build/mapstruct-binding/maven" includes="pom.xml" /> + </tar> + <ivy:scpUpload + from="dist/mavenPublish-mapstructBinding.tar.bz2" + to="/data/lombok/staging" + server="projectlombok.org" + username="${ssh.username}" + keyfile="${ssh.keyfile}" + knownHosts="ssh.knownHosts" /> + <ivy:sshExec + cmd="/data/lombok/stagingCmd/publishToMavenCentral-mapstructBinding" + server="projectlombok.org" + username="${ssh.username}" + keyfile="${ssh.keyfile}" + knownHosts="ssh.knownHosts" /> + <echo>The artifact has been published to staging. Now go to https://oss.sonatype.org/ and log in as Reinier, then doublecheck if all is well and 'release' it.</echo> + <ivy:sshExec + cmd="/data/lombok/stagingCmd/showMavenCentralPassword" + server="projectlombok.org" + username="${ssh.username}" + keyfile="${ssh.keyfile}" + knownHosts="ssh.knownHosts" /> + </target> + <target name="mapstructBinding.maven" depends="mapstructBinding.pack" description="Create a maven repo for mapstruct binding into a build dir."> <delete quiet="true" dir="build/mapstruct-binding-maven" /> <mkdir dir="build/mapstruct-binding-maven" /> |