Browse Source

Add target to publish integration snapshots

Change-Id: I7475afaac13eb56acd9667e6624e155000827687
Reviewed-on: http://gerrit.dmdirc.com/3894
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
pull/1/head
Chris Smith 9 years ago
parent
commit
fa6aaa682f
3 changed files with 26 additions and 0 deletions
  1. 18
    0
      build-ivy.xml
  2. 3
    0
      etc/ivy/ivysettings.xml
  3. 5
    0
      ivy.xml

+ 18
- 0
build-ivy.xml View File

@@ -19,4 +19,22 @@
19 19
         <ivy:retrieve symlink="true" pattern="lib/[conf]/[artifact].[ext]" sync="true" />
20 20
         <property name="ivy.done" value="true"/>
21 21
     </target>
22
+
23
+    <target name="publish-integration" depends="-init-dependencies,jar">
24
+        <copy file="dist/DMDirc.jar" tofile="dist/client.jar"/>
25
+        <ivy:deliver deliverpattern="build/ivy.xml" pubrevision="${git.version}" />
26
+        <ivy:makepom ivyfile="build/ivy.xml" pomfile="dist/client.pom">
27
+            <mapping conf="main" scope="compile"/>
28
+        </ivy:makepom>
29
+        <ivy:resolve file="build/ivy.xml"/>
30
+        <ivy:retrieve/>
31
+        <ivy:publish resolver="dmdirc-releases"
32
+                     organisation="com.dmdirc"
33
+                     module="client"
34
+                     revision="${git.version}"
35
+                     status="integration"
36
+                     artifactspattern="dist/[artifact].[ext]"
37
+                     publishivy="false">
38
+        </ivy:publish>
39
+    </target>
22 40
 </project>

+ 3
- 0
etc/ivy/ivysettings.xml View File

@@ -1,5 +1,8 @@
1 1
 <ivysettings>
2 2
     <settings defaultResolver="default"/>
3
+    <property name="${nexus.user}" value="invalid"  override="false"/>
4
+    <property name="${nexus.pass}" value="invalid"  override="false"/>
5
+    <credentials host="nexus.dmdirc.com" realm="Sonatype Nexus Repository Manager" username="${nexus.user}" passwd="${nexus.pass}"/>
3 6
     <resolvers>
4 7
         <ibiblio name="default" m2compatible="true"/>
5 8
 

+ 5
- 0
ivy.xml View File

@@ -9,6 +9,11 @@
9 9
         <conf name="bundled" description="Things bundled and distributed in full with DMDirc"/>
10 10
     </configurations>
11 11
 
12
+    <publications>
13
+        <artifact type="jar" ext="jar" conf="main"/>
14
+        <artifact type="pom" ext="pom" conf="main"/>
15
+    </publications>
16
+
12 17
     <dependencies>
13 18
         <dependency org="ant-contrib" name="ant-contrib" rev="1.0b3" conf="build->default" />
14 19
         <dependency org="org.sourceforce.ant-nsis" name="ant-nsis" rev="1.3" conf="build->default" />

Loading…
Cancel
Save