Added maven-deploy target and separate pom.xml for deploying the

getdown-pro.jar.
This commit is contained in:
Michael Bayne
2010-11-18 17:41:26 +00:00
parent 5918b67fb1
commit be491d3bfb
2 changed files with 30 additions and 0 deletions
+16
View File
@@ -182,4 +182,20 @@
keystore="${sign.keystore}" storepass="${sign.storepass}"
alias="${sign.alias}" keypass="${sign.keypass}"/>
</target>
<target name="maven-deploy" depends="dist"
description="Deploys our build artifacts to a Maven repository.">
<fail unless="maven.deploy.repo">
Must specify Maven repository with -Dmaven.deploy.repo=file://somepath
</fail>
<artifact:deploy file="${deploy.dir}/${lib.name}.jar" uniqueVersion="false">
<remoteRepository url="${maven.deploy.repo}"/>
<pom refid="pom"/>
</artifact:deploy>
<artifact:pom id="proguard-pom" file="proguard-pom.xml"/>
<artifact:deploy file="${deploy.dir}/${ant.project.name}-pro.jar" uniqueVersion="false">
<remoteRepository url="${maven.deploy.repo}"/>
<pom refid="proguard-pom"/>
</artifact:deploy>
</target>
</project>