Deploy a sources jar along with the code jar for IDE-happiness

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@1054 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Charlie Groves
2011-01-20 00:43:25 +00:00
parent 02abd24058
commit c392cd1fe7
+2
View File
@@ -324,9 +324,11 @@
<property name="maven.deploy.repo" value="file://${user.home}/.m2/repository"/> <property name="maven.deploy.repo" value="file://${user.home}/.m2/repository"/>
<target name="maven-deploy" depends="dist,tests" <target name="maven-deploy" depends="dist,tests"
description="Deploys our build artifacts to a Maven repository."> description="Deploys our build artifacts to a Maven repository.">
<jar basedir="${src.dir}" destfile="${deploy.dir}/${ant.project.name}-sources.jar"/>
<artifact:deploy file="${deploy.dir}/${ant.project.name}.jar" uniqueVersion="false"> <artifact:deploy file="${deploy.dir}/${ant.project.name}.jar" uniqueVersion="false">
<remoteRepository url="${maven.deploy.repo}"/> <remoteRepository url="${maven.deploy.repo}"/>
<pom refid="pom"/> <pom refid="pom"/>
<attach file="${deploy.dir}/${ant.project.name}-sources.jar" classifier="sources"/>
</artifact:deploy> </artifact:deploy>
<artifact:pom id="as-pom" file="etc/as-pom.xml"/> <artifact:pom id="as-pom" file="etc/as-pom.xml"/>
<artifact:deploy file="${deploy.dir}/${ant.project.name}lib.swc" uniqueVersion="false"> <artifact:deploy file="${deploy.dir}/${ant.project.name}lib.swc" uniqueVersion="false">