]> gerrit.simantics Code Review - simantics/fmil.git/commitdiff
Parametrized build with branch-spec. release/1.26.0 release/1.27.0 release/1.28.0 v1.26.0 v1.27.0 v1.28.0
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 31 Jan 2017 06:40:10 +0000 (08:40 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 31 Jan 2017 06:40:10 +0000 (08:40 +0200)
-Dbranch-spec=master or release/1.26.0, etc. can
now be used to run the build based on different
versions of the Simantics SDK.

refs #6879

org.simantics.fmil.parent/pom.xml

index 364d0737f59f7bf2ae7ac939c9fce42597123274..c8ea4990462901ae25010635e6360b8ef28451a3 100644 (file)
@@ -6,18 +6,22 @@
        <version>0.0.1-SNAPSHOT</version>\r
        <packaging>pom</packaging>\r
 \r
-       <properties>\r
-               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
-               <tycho-version>0.26.0</tycho-version>\r
-       </properties>\r
+        <!-- common settings for all modules -->\r
+        <properties>\r
+                <branch-spec>master</branch-spec>\r
+                <simantics-download-site>http://www.simantics.org/download</simantics-download-site>\r
+                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
+                <tycho-version>0.26.0</tycho-version>\r
+        </properties>\r
 \r
-       <repositories>\r
-               <repository>\r
-                       <id>simantics-sdk</id>\r
-                       <layout>p2</layout>\r
-                       <url>http://www.simantics.org/download/master/sdk</url>\r
-               </repository>\r
-       </repositories>\r
+        <repositories>\r
+                <!-- configure p2 repository to resolve against -->\r
+                <repository>\r
+                        <id>simantics-sdk</id>\r
+                        <layout>p2</layout>\r
+                        <url>${simantics-download-site}/${branch-spec}/sdk</url>\r
+                </repository>\r
+        </repositories>\r
 \r
        <build>\r
                <plugins>\r