build: ensure that a version has been created when packaging sources and javadoc

parent 867d69d5
Showing with 6 additions and 6 deletions
......@@ -782,7 +782,7 @@ will compile (if necessary) and load JSS.
</fixcrlf>
</target>
<target name="abcl.source.zip" depends="abcl.source.windows">
<target name="abcl.source.zip" depends="abcl.stamp,abcl.source.windows">
<mkdir dir="${dist.dir}"/>
<zip destfile="${dist.dir}/abcl-src-${abcl.version}.zip"
compress="true">
......@@ -790,7 +790,7 @@ will compile (if necessary) and load JSS.
</zip>
</target>
<target name="abcl.source.jar" depends="abcl.source.unix">
<target name="abcl.source.jar" depends="abcl.stamp,abcl.source.unix">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/abcl-${abcl.version}-sources.jar">
<metainf dir="${abcl.build.src.dir}">
......@@ -805,7 +805,7 @@ will compile (if necessary) and load JSS.
<property name="abcl.javadoc.dir" value="${build.dir}/javadoc"/>
<target name="abcl.javadoc">
<target name="abcl.javadoc" depends="abcl.stamp">
<mkdir dir="${abcl.javadoc.dir}"/>
<javadoc destdir="${abcl.javadoc.dir}"
sourcepath="${src.dir}"/>
......
......@@ -21,9 +21,9 @@ ant abcl.test
# For snapshots - development versions - the version in the POM should be like x.y.z-SNAPSHOT
mvn gpg:sign-and-deploy-file -Dfile=dist/abcl.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots
mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-${abcl.version}-sources.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots -Dclassifier=sources
mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-${abcl.version}-javadoc.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots -Dclassifier=javadoc
mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-contrib-${abcl.version}-jar -DpomFile=contrib/pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots
mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-sources.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots -Dclassifier=sources
mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-javadoc.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots -Dclassifier=javadoc
mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-contrib-.jar -DpomFile=contrib/pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots
# For releases - the version in the POM should be x.y.z
mvn gpg:sign-and-deploy-file -Dfile=dist/abcl.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment