]> source.dussan.org Git - vaadin-framework.git/commitdiff
Maven publish target for nightly builds
authorArtur Signell <artur.signell@itmill.com>
Fri, 14 Aug 2009 13:26:04 +0000 (13:26 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 14 Aug 2009 13:26:04 +0000 (13:26 +0000)
svn changeset:8488/svn branch:6.1

build/build.xml

index cb439a9d3f4a675bbbcd351734947897abbe9254..b4ee49a6baaad3e66c13b536e932c787fb0325fe 100644 (file)
@@ -2,6 +2,7 @@
 
 <project
          xmlns:antcontrib="antlib:net.sf.antcontrib"
+                xmlns:artifact="antlib:org.apache.maven.artifact.ant"
          name="Vaadin"
          basedir="../" default="package-all">
 
         </classpath>
     </taskdef>
 
+       <!-- ant contrib for Maven integration -->
+       <path id="maven-ant-tasks.classpath" path="build/lib/maven-ant-tasks-2.0.10.jar" />
+       <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
+                  uri="antlib:org.apache.maven.artifact.ant"
+                  classpathref="maven-ant-tasks.classpath" />
+
        <!-- internal tests for packaging -->
 
        <target name="test-build" depends="clean-result, init, build" description="used for testing build.xml">
         <echo>Result: ${nightly.install.scp.result}</echo>
     </target>
 
-    <target name="nightly-publish" depends="nightly-teamcity-publish, nightly-download-publish">
+    <target name="nightly-publish" depends="nightly-teamcity-publish, nightly-download-publish, nightly-maven-publish">
     </target>
 
+       
+       <target name="nightly-maven-publish" depends="">
+               <property file="${gpg.passphrase.file}" />
+        <echo>Publishing ${output-dir}/WebContent/${lib-jar-name} to Maven repository</echo>
+               <artifact:mvn>
+                       <arg value="gpg:sign-and-deploy-file"/>
+                       <sysproperty key="file" value="${output-dir}/WebContent/${lib-jar-name}" />
+                       <sysproperty key="pomFile" value="maven/pom.xml" />
+                       <sysproperty key="gpg.repositoryId" value="vaadin-snapshots" />
+                       <sysproperty key="url" value="http://oss.sonatype.org/content/repositories/vaadin-snapshots/" />
+                       <sysproperty key="gpg.passphrase" value="${maven.gpg.passphrase}" />
+               </artifact:mvn>
+       </target>
+       
     <!-- ================================================================== -->
     <!-- Automated tests.                                                   -->
     <!-- ================================================================== -->