changeset 110:d5e9a144ce40

Add task to manually publish artifacts to artifactory
author smith@nwoca.org
date Tue, 23 Oct 2012 16:04:17 +0100
parents 029db4d977fe
children 246f0c7ba9b6
files ivy-ant.xml ssdt.ci.ivy.settings.xml
diffstat 2 files changed, 18 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ivy-ant.xml	Thu Sep 06 20:33:23 2012 +0100
+++ b/ivy-ant.xml	Tue Oct 23 16:04:17 2012 +0100
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project name="ivy-ant"  basedir="." 
-    xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
-    xmlns:ssdt="http://www.ssdt-ohio.org/ant/common">
+         xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
+         xmlns:ssdt="http://www.ssdt-ohio.org/ant/common">
     
     <property   name="ssdt.ivy.jar.src"         value="http://ivy.ssdt.nwoca.org/repository/ivy/ivy.jar"/>
     <property   name="ssdt.ivy.settings.src"    value="${ssdt.devel.kit.src}/ssdt.default.ivy.settings.xml"/>
@@ -78,8 +78,8 @@
         <ivy:settings  file="ivysettings.xml"/>
         <ivy:resolve file="ivy.xml" />
         <ivy:artifactproperty conf="*"
-           name="ivydeps.[organisation]-[module]"
-           value="[revision]"/>
+                              name="ivydeps.[organisation]-[module]"
+                              value="[revision]"/>
 
         <ivy:cachepath pathid="ivy.javac.classpath.id" conf="compile" type="jar"/>
         <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.javac.classpath">
@@ -231,5 +231,12 @@
                   value="build/jar/java-agent.jar"/>
     </target>
 
+    <target name="artifactoryPublish" depends="init">
+        <ivy:settings/>
+        <ivy:resolve file="ivy.xml"/>
+        <ivy:publish forcedeliver="${ivy-publish.forcedeliver}" overwrite="${ivy-publish.overwrite}" resolver="ssdt-snapshots-local">
+            <artifacts pattern="${ivy-publish.artifacts.pattern}"/>
+        </ivy:publish>
+    </target>
 
 </project>
--- a/ssdt.ci.ivy.settings.xml	Thu Sep 06 20:33:23 2012 +0100
+++ b/ssdt.ci.ivy.settings.xml	Tue Oct 23 16:04:17 2012 +0100
@@ -9,6 +9,7 @@
             <ttl revision="latest.integration" duration="5s"/>
         </cache>
     </caches>
+    <property name="ivy-publish.resolver" value="ssdt-snapshots"/>
     <property name="ivy.local.default.root" value="${user.home}/.ivy2/local" override="false"/>
     <property name="ivy.default.ivy.user.dir" value="${user.home}/.ivy2" override="false"/>   
     <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
@@ -16,7 +17,8 @@
     <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
     <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
     <include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
-    <resolvers >        
+    <credentials host="repos.ssdt.nwoca.org" realm="Artifactory Realm" username="gradle" passwd="{DESede}Rd/TAQPyOO6PCyMLLBxybQ=="/>
+     <resolvers >        
         <chain name="default">     
             <url name="ssdt-snapshots" changingPattern=".*SNAPSHOT" checkmodified="true" m2compatible="true" cache="snapshot-cache">
                 <artifact pattern="http://repos.ssdt.nwoca.org/artifactory/libs-snapshots/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" />
@@ -36,5 +38,9 @@
             <ivy pattern="${ivy.default.ivy.user.dir}/publish/${ivy.local.default.ivy.pattern}" />
             <artifact pattern="${ivy.default.ivy.user.dir}/publish/${ivy.local.default.artifact.pattern}" />
         </filesystem>     
+       <url name="ssdt-snapshots-local" changingPattern=".*SNAPSHOT" checkmodified="true" m2compatible="true">
+                <artifact pattern="http://repos.ssdt.nwoca.org/artifactory/libs-snapshots-local/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" />
+                <ivy pattern="http://repos.ssdt.nwoca.org/artifactory/libs-snapshots-local/[organisation]/[module]/ivy-[revision].xml" />
+            </url>            
     </resolvers>
 </ivysettings>