|
@@ -1,65 +0,0 @@
|
1
|
|
-<?xml version="1.0" encoding="UTF-8"?>
|
2
|
|
-<project name="DMDirc-Publish" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
|
3
|
|
- <description>Publish artifacts for DMDirc</description>
|
4
|
|
-
|
5
|
|
- <available file="${git.dir}" property="is.git" />
|
6
|
|
-
|
7
|
|
- <target name="-init-version">
|
8
|
|
- <taskdef name="git-describe" classname="org.mdonoughe.JGitDescribeTask" classpathref="lib.classpath"/>
|
9
|
|
- </target>
|
10
|
|
-
|
11
|
|
- <target name="-get-git-version" depends="-init-version" if="is.git">
|
12
|
|
- <property name="resolved.src.dir" location="${src.dir}"/>
|
13
|
|
- <git-describe dir="${git.dir}" property="git.version" subdir="${basedir}/${src.dir}" />
|
14
|
|
- </target>
|
15
|
|
-
|
16
|
|
- <target name="-publish-snapshot" depends="-get-git-version">
|
17
|
|
- <git-describe dir="${git.dir}" property="git.version" subdir="${main.src.dir}" />
|
18
|
|
- <ivy:resolve file="ivy.xml"/>
|
19
|
|
- <ivy:deliver deliverpattern="${build.dir}/ivy.xml" pubrevision="${git.version}-SNAPSHOT" />
|
20
|
|
- <ivy:makepom ivyfile="${build.dir}/ivy.xml" pomfile="dist/utils.pom">
|
21
|
|
- <mapping conf="default" scope="compile"/>
|
22
|
|
- </ivy:makepom>
|
23
|
|
- <ivy:retrieve/>
|
24
|
|
- <ivy:publish
|
25
|
|
- pubrevision="${git.version}-SNAPSHOT"
|
26
|
|
- status="integration"
|
27
|
|
- overwrite="true"
|
28
|
|
- publishivy="false"
|
29
|
|
- artifactspattern="dist/[artifact].[ext]"
|
30
|
|
- resolver="upload-snapshot"/>
|
31
|
|
- </target>
|
32
|
|
- <target name="-publish-release" depends="-get-git-version">
|
33
|
|
- <ivy:resolve file="ivy.xml"/>
|
34
|
|
- <ivy:deliver deliverpattern="${build.dir}/ivy.xml" pubrevision="${git.version}" />
|
35
|
|
- <ivy:makepom ivyfile="${build.dir}/ivy.xml" pomfile="dist/utils.pom">
|
36
|
|
- <mapping conf="default" scope="compile"/>
|
37
|
|
- </ivy:makepom>
|
38
|
|
- <ivy:retrieve/>
|
39
|
|
- <ivy:publish
|
40
|
|
- pubrevision="${git.version}"
|
41
|
|
- status="release"
|
42
|
|
- overwrite="true"
|
43
|
|
- publishivy="false"
|
44
|
|
- artifactspattern="dist/[artifact].[ext]"
|
45
|
|
- resolver="upload-release"/>
|
46
|
|
- </target>
|
47
|
|
- <target name="-publish-nightlies" depends="-get-git-version">
|
48
|
|
- <tstamp>
|
49
|
|
- <format property="timestamp" pattern="yyyyddMM" />
|
50
|
|
- </tstamp>
|
51
|
|
- <ivy:resolve file="ivy.xml"/>
|
52
|
|
- <ivy:deliver deliverpattern="${build.dir}/ivy.xml" pubrevision="Nightly-${timestamp}_${git.version}" />
|
53
|
|
- <ivy:makepom ivyfile="${build.dir}/ivy.xml" pomfile="dist/utils.pom">
|
54
|
|
- <mapping conf="default" scope="compile"/>
|
55
|
|
- </ivy:makepom>
|
56
|
|
- <ivy:retrieve/>
|
57
|
|
- <ivy:publish
|
58
|
|
- pubrevision="Nightly-${timestamp}_${git.version}"
|
59
|
|
- status="release"
|
60
|
|
- overwrite="true"
|
61
|
|
- publishivy="false"
|
62
|
|
- artifactspattern="dist/[artifact].[ext]"
|
63
|
|
- resolver="upload-nightlies"/>
|
64
|
|
- </target>
|
65
|
|
-</project>
|