Everyone,
I am trying to configure our Tycho build to update the version numbers of our bundles, but only if they have changed. The rule for the new version name is 2.1.7.${current_date:yyyyMMdd}.
I configured the tycho-versions-plugin according to the example
<!-- This updates the version numbers of the POM, bundles, etc. -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-versions-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>versions</id>
<phase>validate</phase>
<goals>
<goal>set-version</goal>
<goal>update-pom</goal>
</goals>
</execution>
</executions>
</plugin>
and I configured the tycho-buildstamp-jgit and tycho-p2-plugin according to the documentation
<!-- This configured git support for examining the bundles and only updating the versions if they change. -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho-version}</version>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-buildtimestamp-jgit</artifactId>
<version>${tycho-version}</version>
</dependency>
</dependencies>
<configuration>
<timestampProvider>jgit</timestampProvider>
<jgit.ignore>
pom.xml
</jgit.ignore>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<baselineRepositories>
<repository>
<url>
https://sourceforge.net/projects/niceproject/files/nightly/update/</url>
</repository>
</baselineRepositories>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Updating the versions works fantastically, but every bundle is still getting updated such that every day all of our files with version numbers will change. Do I have something configured incorrectly for only getting updates when jgit detects changes?
Thanks for your time,
Jay
--
Jay Jay Billings
Oak Ridge National Laboratory
Twitter Handle: @jayjaybillings