]> source.dussan.org Git - vaadin-framework.git/commitdiff
Build javadoc and sources jars (#9299)
authorArtur Signell <artur@vaadin.com>
Wed, 5 Sep 2012 07:29:34 +0000 (10:29 +0300)
committerArtur Signell <artur@vaadin.com>
Sun, 9 Sep 2012 08:23:24 +0000 (11:23 +0300)
18 files changed:
build.properties
buildhelpers/ivy.xml
client-compiled/ivy.xml
client-compiler/build.xml
client-compiler/ivy.xml
client/build.xml
client/ivy.xml
common.xml
ivysettings.xml
pom-template.xml
server/build.xml
server/ivy.xml
shared/build.xml
shared/ivy.xml
theme-compiler/build.xml
theme-compiler/ivy.xml
themes-compiled/ivy.xml
uitest/ivy.xml

index f5682be0a0e54577d84e5aea16f22238c43142d0..fb08ef66908b959fc4b1ccfb494e9a8a01b5fe4f 100644 (file)
@@ -5,5 +5,3 @@ vaadin.vendor=Vaadin Ltd
 vaadin.java.version=1.6
 vaadin.version=0.0.0.unversioned-development-build
 
-# repository into which Maven snapshots should be published 
-snapshot.repository.url=http://oss.sonatype.org/content/repositories/vaadin-snapshots
index 9d74b56f599e28e3f25e321ab2d92f1a5c5a2f93..ba44ebfc3f4220934d49bcbb25846d42e1fbc969 100644 (file)
@@ -22,8 +22,8 @@
     </configurations>
     <publications>
         <artifact type="jar" />
-        <!-- <artifact type="source" ext="jar" m:classifier="sources" /> -->
-        <!-- <artifact type="javadoc" ext="jar" m:classifier="javadoc" /> -->
+        <artifact type="source" ext="jar" m:classifier="sources" />
+        <artifact type="javadoc" ext="jar" m:classifier="javadoc" />
         <artifact type="pom" ext="pom" />
 
     </publications>
index bddabc8bb8104931d982e5e0ce1718ac3d0462e3..a136929929976a98ce654636043950785f3788ba 100644 (file)
@@ -1,19 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ivy-module version="2.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
+    xmlns:m="http://ant.apache.org/ivy/maven">
 
     <info organisation="com.vaadin" module="vaadin-client-compiled"
         revision="${vaadin.version}" />
 
     <configurations>
         <conf name="build" />
+        <conf name="build-provided" />
         <conf name="compile-module" visibility="private" />
     </configurations>
     <publications>
-        <artifact type="jar" ext="jar"/>
-        <artifact type="pom" ext="pom"/>
-                <!-- cache must be a separate artifact, not within vaadin-client-compiled -->
+        <artifact type="jar" ext="jar" />
+<!--         <artifact type="source" ext="jar" m:classifier="sources" /> -->
+<!--         <artifact type="javadoc" ext="jar" m:classifier="javadoc" /> -->
+        <artifact type="pom" ext="pom" />
+        <!-- cache must be a separate artifact, not within vaadin-client-compiled -->
         <!-- <artifact type="jar" name="vaadin-client-compiled-cache"/> -->
     </publications>
     <dependencies>
index fd29e8ed02894c371463b35561ec3600fa0eca96..97645ea51c93e98b9a5f79c8531686126d8ec7e1 100644 (file)
        <target name="jar">
                <!-- Get Git revision -->
                <exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
-                        <arg value="describe"/>
-                        <arg value="--tags"/>
-                        <arg value="--always"/>
-                        <arg value="HEAD"/>
-               </exec> 
-                
+                       <arg value="describe"/>
+                       <arg value="--tags"/>
+                       <arg value="--always"/>
+                       <arg value="HEAD"/>
+               </exec>
+
                <echo file="${result.dir}/com/google/gwt/dev/About.properties">gwt.version=${vaadin.version}
 gwt.svnrev=${git.revision}</echo>
 
@@ -40,6 +40,9 @@ gwt.svnrev=${git.revision}</echo>
        </target>
 
        <target name="publish-local" depends="jar">
+               <antcall target="common.sources.jar" />
+               <antcall target="common.javadoc.jar" />
+
                <antcall target="common.publish-local" />
        </target>
 
index 8c991b2223e653a24def004bd0e57834e8fb42dd..d824f503b258e8dfe2e29a2f7e82c82a837ff923 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ivy-module version="2.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
+    xmlns:m="http://ant.apache.org/ivy/maven">
 
     <info organisation="com.vaadin" module="vaadin-client-compiler"
         revision="${vaadin.version}" />
     <configurations>
         <conf name="build" />
         <conf name="build-provided" />
-        <conf name="ide" visibility="private"/>
+        <conf name="ide" visibility="private" />
     </configurations>
     <publications>
-        <artifact type="jar" ext="jar"/>
-                <artifact type="pom" ext="pom"/>
-                    </publications>
+        <artifact type="jar" ext="jar" />
+        <artifact type="source" ext="jar" m:classifier="sources" />
+        <artifact type="javadoc" ext="jar" m:classifier="javadoc" />
+        <artifact type="pom" ext="pom" />
+    </publications>
     <dependencies>
         <dependency org="com.vaadin" name="vaadin-shared"
             rev="${vaadin.version}"></dependency>
index de1b5444a8f1a08d01a1b73f45d50ea29e31f331..f0ee0892f9fcc9f46e952e353df6852f44a6fcfa 100644 (file)
@@ -28,6 +28,9 @@
        </target>
 
        <target name="publish-local" depends="jar">
+               <antcall target="common.sources.jar" />
+               <antcall target="common.javadoc.jar" />
+
                <antcall target="common.publish-local" />
        </target>
 
index 52706b4ed92b2d0fe2b3560032373393c936eedb..39ed494d86835e8acf38d7ef75cf7b1dc7d01132 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ivy-module version="2.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
+    xmlns:m="http://ant.apache.org/ivy/maven">
 
     <info organisation="com.vaadin" module="vaadin-client"
         revision="${vaadin.version}" />
@@ -14,6 +15,8 @@
     </configurations>
     <publications>
         <artifact type="jar" ext="jar"/>
+<artifact type="source" ext="jar" m:classifier="sources" />
+<artifact type="javadoc" ext="jar" m:classifier="javadoc" />
         <artifact type="pom" ext="pom"/>
     </publications>
     <dependencies defaultconf="build" defaultconfmapping="build,ide->default">
index c457d827a93cc0c5cb4ce33bbf4f6831c42c2f30..efaf47d30de649828acc87bcf6e218d075d0327c 100644 (file)
@@ -1,8 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project name="common" basedir="." default="" xmlns:ivy="antlib:org.apache.ivy.ant">
+<project name="common" basedir="." default="" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:antcontrib="antlib:net.sf.antcontrib">
+
        <dirname property="vaadin.basedir" file="${ant.file.common}" />
        <property file="${vaadin.basedir}/build.properties" />
-       <ivy:settings file="${vaadin.basedir}/ivysettings.xml" />
+
+       <ivy:resolve file="${vaadin.basedir}/build/ivy/ivy.xml" conf="taskdefs" />
+       <ivy:cachepath pathid="taskdefs.classpath" conf="taskdefs" />
+       <taskdef uri="antlib:net.sf.antcontrib" resource="net/sf/antcontrib/antlib.xml" classpathref="taskdefs.classpath" />
+       <!-- ant contrib for Maven integration -->
+       <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="taskdefs.classpath" />
+
+       <!-- FIXME These are not available in other files -->
+       <antcontrib:propertyregex property="vaadin.version.major" input="${version}" regexp="([^\.]*)\.([^\.]*)\.([^\.]*)" select="\1" />
+       <antcontrib:propertyregex property="vaadin.version.minor" input="${version}" regexp="([^\.]*)\.([^\.]*)\.([^\.]*)" select="\2" />
+       <antcontrib:propertyregex property="vaadin.version.revision" input="${version}" regexp="([^\.]*)\.([^\.]*)\.([^\.]*)" select="\3" />
+
+       <ivy:settings file="${vaadin.basedir}/ivysettings.xml" id="ivysettings" />
 
        <union id="empty.reference" />
 
@@ -22,6 +35,7 @@
                <property name="ivy.xml" location="${result.dir}/../ivy.xml" />
                <property name="pom.xml" location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" />
                <property name="conf" value="build, build-provided" />
+               <property name="vaadin.maven.version" value="${vaadin.version.major}.${vaadin.version.minor}-SNAPSHOT" />
 
                <ivy:makepom templatefile="${vaadin.basedir}/pom-template.xml" ivyfile="${ivy.xml}" pomfile="${pom.xml}" conf="${conf}">
                        <mapping conf="build" scope="compile" />
                <property name="conf" value="*(public)" />
 
                <ivy:resolve conf="${conf}" />
-               <ivy:publish conf="${conf}" resolver="build-temp" overwrite="true" forcedeliver="true">
+               <ivy:publish settingsref="ivysettings" conf="${conf}" resolver="build-temp" overwrite="true" forcedeliver="true">
                        <!--                    <artifacts pattern="${result.dir}/[artifact]-[revision].[ext]" />-->
                        <artifacts pattern="${result.dir}/lib/[artifact]-[revision](-[classifier]).[ext]" />
 
                </ivy:publish>
-               <ivy:publish conf="${conf}" resolver="local-maven" overwrite="true">
+               <ivy:publish settingsref="ivysettings" conf="${conf}" resolver="local-maven" overwrite="true">
                        <artifacts pattern="${result.dir}/lib/[artifact]-[revision](-[classifier]).[ext]" />
                </ivy:publish>
        </target>
index 59402181088325d2dc9c32f623d493604b5f2f8a..487fc921dffca17cd1c15734ba0f1943890ff4ca 100644 (file)
@@ -28,7 +28,7 @@
             <ivy
                 pattern="${ivy.settings.dir}/result/artifacts/[revision]/[module]/ivy-[revision].xml" />
             <artifact
-                pattern="${ivy.settings.dir}/result/artifacts/[revision]/[module]/[artifact]-[revision].[ext]" />
+                pattern="${ivy.settings.dir}/result/artifacts/[revision]/[module]/[artifact]-[revision](-[classifier]).[ext]" />
         </filesystem>
     </resolvers>
     <modules>
index cec0ca6dc4fc7c0cecd2217301af09dd97a26840..563a5a8e9771cfa61b7c2af6bc6edbb434287c52 100644 (file)
@@ -2,7 +2,7 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.vaadin</groupId>
   <artifactId>${module.name}</artifactId>
-  <version>${vaadin.version}</version>
+  <version>${vaadin.maven.version}</version>
   <name>Vaadin</name>
   <organization>
     <name>Vaadin Ltd</name>
index 2763d5ff10618fc893033f440a56299199236f90..c08df072cd4a235a7018080511a6e76ef2b080c7 100644 (file)
@@ -29,6 +29,9 @@
        </target>
 
        <target name="publish-local" depends="jar">
+               <antcall target="common.sources.jar" />
+               <antcall target="common.javadoc.jar" />
+
                <antcall target="common.publish-local" />
        </target>
 
index 1e1b4460d7cc0b091e2473a935dfbd32f90bd79c..99e5ae78111116ab46fcc3332b9ecdebbd6233bf 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ivy-module version="2.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
+    xmlns:m="http://ant.apache.org/ivy/maven">
 
     <info organisation="com.vaadin" module="vaadin-server"
         revision="${vaadin.version}" />
@@ -14,6 +15,8 @@
     </configurations>
     <publications>
         <artifact type="jar" ext="jar"/>
+<artifact type="source" ext="jar" m:classifier="sources" />
+<artifact type="javadoc" ext="jar" m:classifier="javadoc" />
                 <artifact type="pom" ext="pom"/>
                     </publications>
     <dependencies>
index 29f68ef643dbe8514f76acc497a51421f2f08723..d458b57d71998f6ede60fad05b6c1636816c2f16 100644 (file)
@@ -22,6 +22,9 @@
        </target>
 
        <target name="publish-local" depends="jar">
+               <antcall target="common.sources.jar" />
+               <antcall target="common.javadoc.jar" />
+
                <antcall target="common.publish-local" />
        </target>
                
index 8c344a92e924232ad94078e51deb1d8acac1cc34..413231ab01f6f35a601aff8eb88a5416a2d9ce28 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ivy-module version="2.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
+    xmlns:m="http://ant.apache.org/ivy/maven">
 
     <info organisation="com.vaadin" module="vaadin-shared"
         revision="${vaadin.version}" />
@@ -14,6 +15,8 @@
     </configurations>
     <publications>
         <artifact type="jar" ext="jar"/>
+<artifact type="source" ext="jar" m:classifier="sources" />
+<artifact type="javadoc" ext="jar" m:classifier="javadoc" />
                 <artifact type="pom" ext="pom"/>
                     </publications>
     <dependencies>
index aa378f7769ae34e420f9afe29b17fa4110524f25..300f2718aaebcb917e07c3d719481342a6f3ce9a 100644 (file)
@@ -21,6 +21,9 @@
                </antcall>
        </target>
        <target name="publish-local" depends="jar">
+               <antcall target="common.sources.jar" />
+               <antcall target="common.javadoc.jar" />
+
                <antcall target="common.publish-local" />
        </target>
 
index 06285afaf1a8c732dc13122549f406f979e8fc1f..873faa7a845b2e5a2762bfb6b89dee04135c9fd7 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ivy-module version="2.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
+    xmlns:m="http://ant.apache.org/ivy/maven">
 
     <info organisation="com.vaadin" module="vaadin-theme-compiler"
         revision="${vaadin.version}" />
@@ -15,8 +16,8 @@
     <publications>
         <artifact type="jar" ext="jar"/>
                 <artifact type="pom" ext="pom"/>
-                        <artifact type="sources" ext="jar" />
-        <artifact type="javadoc" ext="jar" />
+<artifact type="source" ext="jar" m:classifier="sources" />
+<artifact type="javadoc" ext="jar" m:classifier="javadoc" />
     </publications>
     <dependencies defaultconf="*->default">
         <!-- LIBRARY DEPENDENCIES (compile time) -->
index 6bf7d0d8134bab4fcc18d4c09ed54107ebb3e9b4..ce5260c5983affdbc50c05fb419b35d4ed4ecb04 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ivy-module version="2.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
+    xmlns:m="http://ant.apache.org/ivy/maven">
 
     <info organisation="com.vaadin" module="vaadin-themes-compiled"
         revision="${vaadin.version}" />
         <conf name="compile-theme" visibility="private" />
     </configurations>
     <publications>
-        <artifact type="jar" ext="jar"/>
-                <artifact type="pom" ext="pom"/>
-                    </publications>
+        <artifact type="jar" ext="jar" />
+<!--         <artifact type="source" ext="jar" m:classifier="sources" /> -->
+<!--         <artifact type="javadoc" ext="jar" m:classifier="javadoc" /> -->
+        <artifact type="pom" ext="pom" />
+    </publications>
     <dependencies>
         <dependency org="com.vaadin" name="vaadin-theme-compiler"
             rev="${vaadin.version}" conf="compile-theme->build" />
index 563be59b0bdbb8b6f15089df71a892cf49affde5..2a9bc6b2ef0c7d5af73290fc3dd836fb3df84533 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ivy-module version="2.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+    xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
+    xmlns:m="http://ant.apache.org/ivy/maven">
 
     <info organisation="com.vaadin" module="vaadin-uitest"
         revision="${vaadin.version}" />