summaryrefslogtreecommitdiffstats
path: root/bom/build.xml
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2015-03-19 15:36:36 +0200
committerVaadin Code Review <review@vaadin.com>2015-03-26 09:38:36 +0000
commit640ac265babd0c31c3572e8080dff4f9a9be2ab6 (patch)
tree1e954809d900f1870779f8a3dfe5e8c6eb8d475c /bom/build.xml
parentf38697786931944177c86498939d6b5993b1588d (diff)
downloadvaadin-framework-640ac265babd0c31c3572e8080dff4f9a9be2ab6.tar.gz
vaadin-framework-640ac265babd0c31c3572e8080dff4f9a9be2ab6.zip
Build Maven BOM for Vaadin (#17025)
Change-Id: I842a5f1551012744354371e1c099f6ca2360029c
Diffstat (limited to 'bom/build.xml')
-rw-r--r--bom/build.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/bom/build.xml b/bom/build.xml
new file mode 100644
index 0000000000..42d7303b7b
--- /dev/null
+++ b/bom/build.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+
+<project name="vaadin-bom" basedir="." default="publish-local"
+ xmlns:artifact="antlib:org.apache.maven.artifact.ant" xmlns:antcontrib="antlib:net.sf.antcontrib">
+ <description>
+ Compiles a BOM (Bill of Materials) Maven artifact
+ </description>
+ <include file="../common.xml" as="common" />
+ <include file="../build.xml" as="vaadin" />
+
+ <!-- global properties -->
+ <property name="module.name" value="vaadin-bom" />
+ <property name="result.dir" value="result" />
+
+ <target name="bom" description="Generates a BOM (Bill of Materials) pom.xml. Either for a snapshot or a release version">
+ <fail unless="result.dir" message="No result.dir parameter given" />
+ <condition property="vaadin.maven.version" value="${vaadin.version}">
+ <isset property="build.release" />
+ </condition>
+ <!-- if this wasn't already set by the condition, this is a snapshot -->
+ <property name="vaadin.maven.version" value="${vaadin.version.major}.${vaadin.version.minor}-SNAPSHOT" />
+
+ <property name="bom.xml" location="${result.dir}/lib/vaadin-bom-${vaadin.version}.pom" />
+
+ <copy file="vaadin-bom.pom" tofile="${bom.xml}" overwrite="true">
+ <filterchain>
+ <replacestring from="@vaadin.version@" to="${vaadin.maven.version}" />
+ </filterchain>
+ </copy>
+ </target>
+
+ <target name="publish-local" depends="bom">
+ <antcall target="common.publish-local" />
+ </target>
+
+ <target name="clean">
+ <antcall target="common.clean" />
+ </target>
+ <target name="checkstyle">
+ <!-- No code in this module -->
+ </target>
+ <target name="test" depends="checkstyle">
+ <!-- No tests for this BOM.. -->
+ </target>
+
+</project>