diff options
-rw-r--r-- | build.xml | 25 | ||||
-rwxr-xr-x | release.sh | 4 |
2 files changed, 16 insertions, 13 deletions
@@ -213,7 +213,20 @@ <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"/> </target> - <target name="deploy" depends="ci-build,dist" description="Build and deploy to remote stable repository."> + <target name="nightly-build" depends="ci-build" + description="Build and deploy to nightly (snapshot) repository."> + <sequential> + <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"/> + <mvn:deploy file="${clojure_jar}"> + <pom file="pom.xml"/> + <attach file="${src_jar}" classifier="sources"/> + <attach file="${slim_jar}" classifier="slim"/> + <remoteRepository url="file:@{snapshot.repo.dir}"/> + </mvn:deploy> + </sequential> + </target> + + <target name="release" depends="ci-build,dist" description="Build and deploy to remote stable repository."> <sequential> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"/> <mvn:install-provider artifactId="wagon-ssh" version="1.0-beta-2"/> @@ -238,16 +251,6 @@ </mvn:install> </target> - <target name="nightly-build" depends="ci-build" - description="Build and deploy to nightly (snapshot) repository."> - <deploy target-dir="${snapshot.repo.dir}"/> - </target> - - - <target name="stable-build" depends="ci-build" description="Build and deploy to stable repository."> - <deploy target-dir="${stable.repo.dir}"/> - </target> - <target name="dist" depends="clean,clojure-jar" description="Build distribution ZIP file"> <property name="distdir" value="${dist}/clojure-${clojure.version.label}"/> @@ -32,6 +32,6 @@ git tag -a -m "$VERSION" $VERSION if [ -z $CLOJURE_DEPLOY_URL ]; then CLOJURE_DEPLOY_URL=scp://build.clojure.org/srv/www/releases fi -ant deploy -Ddeployment.url=$CLOJURE_DEPLOY_URL +ant release -Ddeployment.url=$CLOJURE_DEPLOY_URL -echo "Build is complete. git push if you are satisfied with the result."
\ No newline at end of file +echo "Build is complete. git push if you are satisfied with the result." |