Bug 419456 - CBI Build: Update Version for Releases
Adds prepare-release profile for tycho version plugin
Change-Id: I461a145ac6660c9e898eefaba96fefe22fc487db
diff --git a/org.eclipse.scout.parent/pom.xml b/org.eclipse.scout.parent/pom.xml
index 5894601..6d8a5b4 100755
--- a/org.eclipse.scout.parent/pom.xml
+++ b/org.eclipse.scout.parent/pom.xml
@@ -67,7 +67,8 @@
<maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
<buildId>${buildType}${maven.build.timestamp}</buildId>
- <scout.version>3.10.0-SNAPSHOT</scout.version>
+ <scout.base.version>3.10.0</scout.base.version>
+ <scout.version>${scout.base.version}-SNAPSHOT</scout.version>
<comparator.repo>http://download.eclipse.org/eclipse/updates/4.3-M-builds</comparator.repo>
<tycho.version>0.18.1</tycho.version>
@@ -460,6 +461,14 @@
</lifecycleMappingMetadata>
</configuration>
</plugin>
+
+ <!--Use this plugin to set the version to a release or snapshot in Manifests, poms, repositories-->
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-versions-plugin</artifactId>
+ <version>${tycho.version}</version>
+ </plugin>
+
</plugins>
</pluginManagement>
@@ -961,5 +970,36 @@
</properties>
</profile>
+ <profile>
+ <id>prepare-release</id>
+ <properties>
+ <milestone.version>I</milestone.version>
+ <newVersion>${scout.base.version}.${maven.build.timestamp}-${milestone.version}</newVersion>
+ </properties>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <defaultGoal>org.eclipse.tycho:tycho-versions-plugin:0.19.0-SNAPSHOT:set-version</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-versions-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>set-version</id>
+ <goals>
+ <goal>set-version</goal>
+ </goals>
+ <configuration>
+ <newVersion>${newVersion}</newVersion>
+ </configuration>
+ <phase>validate</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>