|
@@ -22,19 +22,31 @@
|
22
|
22
|
|
23
|
23
|
<target name="publish-integration" depends="-init-dependencies,jar">
|
24
|
24
|
<copy file="dist/DMDirc.jar" tofile="dist/client.jar"/>
|
25
|
|
- <ivy:deliver deliverpattern="build/ivy.xml" pubrevision="${git.version}" />
|
|
25
|
+ <ivy:deliver deliverpattern="build/ivy.xml" pubrevision="${git.version}-SNAPSHOT" />
|
26
|
26
|
<ivy:makepom ivyfile="build/ivy.xml" pomfile="dist/client.pom">
|
27
|
27
|
<mapping conf="main" scope="compile"/>
|
28
|
28
|
</ivy:makepom>
|
29
|
29
|
<ivy:resolve file="build/ivy.xml"/>
|
30
|
30
|
<ivy:retrieve/>
|
31
|
|
- <ivy:publish resolver="dmdirc-releases"
|
|
31
|
+ <ivy:publish resolver="dmdirc-snapshots"
|
32
|
32
|
organisation="com.dmdirc"
|
33
|
33
|
module="client"
|
34
|
|
- revision="${git.version}"
|
|
34
|
+ revision="${git.version}-SNAPSHOT"
|
35
|
35
|
status="integration"
|
36
|
36
|
artifactspattern="dist/[artifact].[ext]"
|
37
|
37
|
publishivy="false">
|
38
|
38
|
</ivy:publish>
|
39
|
39
|
</target>
|
|
40
|
+
|
|
41
|
+ <target name="publish-from-teamcity" depends="-init-dependencies">
|
|
42
|
+ <echo>Downloading private files, if this fails please pass username and</echo>
|
|
43
|
+ <echo>password to ant using -Dusername=... -Dpassword=...</echo>
|
|
44
|
+
|
|
45
|
+ <get src="http://www.dmdirc.com/private/nexus-teamcity.properties" dest="etc/nexus-teamcity.properties" username="${username}" password="${password}"/>
|
|
46
|
+ <loadproperties srcFile="etc/nexus-teamcity.properties"/>
|
|
47
|
+
|
|
48
|
+ <ivy:settings>
|
|
49
|
+ <credentials host="nexus.dmdirc.com" realm="Sonatype Nexus Repository Manager" username="${nexus.user}" passwd="${nexus.pass}"/>
|
|
50
|
+ </ivy:settings>
|
|
51
|
+ </target>
|
40
|
52
|
</project>
|