summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-07-25 17:45:51 -0400
committerJames Moger <james.moger@gitblit.com>2013-07-25 18:05:48 -0400
commitf12685abf02e2f24b372786c8be9bdcda86c1ab4 (patch)
tree63d8e666f8bbb4d5a934f08a88ee95682269f8bc /build.xml
parentd5bdbdf6f0d54d4753f35a9b519fb7da2c2a9da7 (diff)
downloadgitblit-f12685abf02e2f24b372786c8be9bdcda86c1ab4.tar.gz
gitblit-f12685abf02e2f24b372786c8be9bdcda86c1ab4.zip
Added maintaining a Maven repository to the build release process
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml15
1 files changed, 14 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index ccbfcfda..35e3192c 100644
--- a/build.xml
+++ b/build.xml
@@ -49,7 +49,8 @@
<property name="authority.zipfile" value="authority-${project.version}.zip" />
<property name="gbapi.zipfile" value="gbapi-${project.version}.zip" />
<property name="express.zipfile" value="express-${project.version}.zip" />
-
+ <property name="maven.directory" value="${basedir}/../gitblit-maven" />
+
<!-- Download links -->
<property name="gc.url" value="http://code.google.com/p/gitblit/downloads/detail?name=" />
</target>
@@ -812,6 +813,16 @@
</target>
+ <!--
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Package and deploy RELEASE artifacts to the Maven repository
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ -->
+ <target name="buildMavenArtifacts" depends="prepare">
+ <mx:package />
+ <mx:deploy basedir="${maven.directory}" allowsnapshots="false" />
+ </target>
+
<!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -966,6 +977,8 @@
<filter token="project.version" value="${project.version}" />
<filter token="project.commitId" value="${project.commitId}" />
<filter token="project.tag" value="${project.tag}" />
+ <filter token="project.directory" value="${basedir}" />
+ <filter token="maven.directory" value="${maven.directory}" />
</filterset>
</copy>
<chmod file="${recipe}" perm="ugo+rx" />