avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r927535 - in /hadoop/avro/trunk: CHANGES.txt lang/java/build.xml share/VERSION.txt
Date Thu, 25 Mar 2010 18:46:10 GMT
Author: cutting
Date: Thu Mar 25 18:46:10 2010
New Revision: 927535

URL: http://svn.apache.org/viewvc?rev=927535&view=rev
Log:
AVRO-490.  Add Ant task to deploy Java artifacts to a Maven repo.

Modified:
    hadoop/avro/trunk/CHANGES.txt
    hadoop/avro/trunk/lang/java/build.xml
    hadoop/avro/trunk/share/VERSION.txt

Modified: hadoop/avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/CHANGES.txt?rev=927535&r1=927534&r2=927535&view=diff
==============================================================================
--- hadoop/avro/trunk/CHANGES.txt (original)
+++ hadoop/avro/trunk/CHANGES.txt Thu Mar 25 18:46:10 2010
@@ -20,6 +20,8 @@ Avro 1.3.2 (unreleased)
     AVRO-423. HTTPTransceiver does not reuse connections
     (Eric Evans via hammer)
 
+    AVRO-490. Add Ant task to deploy Java artifacts to Maven repo. (cutting)
+
   BUG FIXES
 
     AVRO-479. Fix 'sign' target in top-level build.sh to generate md5

Modified: hadoop/avro/trunk/lang/java/build.xml
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/java/build.xml?rev=927535&r1=927534&r2=927535&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/java/build.xml (original)
+++ hadoop/avro/trunk/lang/java/build.xml Thu Mar 25 18:46:10 2010
@@ -82,6 +82,8 @@
   <property name="ivy.home" value="${user.home}/.ant" />
   <property name="ivy.lib" value="${build.dir}/lib"/>
   <property name="ivy.test.lib" value="${build.dir}/test/lib"/>
+  <property name="mvn.repo"
+	    value="https://repository.apache.org/content/repositories/snapshots"/>
 
   <!-- Eclipse properties -->
   <property name="build.dir.eclipse" value=".eclipse"/>
@@ -581,7 +583,7 @@
   <!-- End Eclipse targets -->
 
   <target name="mvn-install" depends="jar,pom,source,javadoc-jar"
-	  description="Installs avro core jar to local fs m2 cache">
+	  description="Installs avro to local m2 cache">
     <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
 	     uri="urn:maven-artifact-ant"
 	     classpathref="java.classpath"/>
@@ -595,4 +597,20 @@
     </mvn:install>
   </target>
 
+  <target name="mvn-deploy" depends="jar,pom,source,javadoc-jar"
+     description="Deploys Avro to Maven repo.">
+    <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
+	     uri="urn:maven-artifact-ant"
+	     classpathref="java.classpath"/>
+    <mvn:pom file="${dist.dir}/${fullname}.pom" id="avro"/>
+    <mvn:deploy file="${build.dir}/${fullname}.jar">
+      <remoteRepository id="avro.mvn.repo" url="${mvn.repo}"/>
+      <attach file="${build.dir}/${fullname}-sources.jar"
+           classifier="sources" />
+      <attach file="${build.dir}/${fullname}-javadoc.jar"
+           classifier="javadoc" />
+      <pom refid="avro"/>
+    </mvn:deploy>
+  </target>
+
 </project>

Modified: hadoop/avro/trunk/share/VERSION.txt
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/share/VERSION.txt?rev=927535&r1=927534&r2=927535&view=diff
==============================================================================
--- hadoop/avro/trunk/share/VERSION.txt (original)
+++ hadoop/avro/trunk/share/VERSION.txt Thu Mar 25 18:46:10 2010
@@ -1 +1 @@
-1.3.1
\ No newline at end of file
+1.3.2-SNAPSHOT
\ No newline at end of file



Mime
View raw message