Community
Participate
Working Groups
Build Identifier: 0.14.0 Hi all, The issue I am currently facing is that when I use the versions plugin to change my project version it does not change the version of my target platform. The target platform is a submodule in my project and is described in the configuration of the target-platform-configuration plugin. I know that the configuration of target-platform-configuration is a plugin configuration, but since the whole tycho build is based on it and it is a little annoying to change the target-platform version every time I change the version of my project. I would propose that the versions plugin to be able to change the target platform version. Reproducible: Always Steps to Reproduce: Run versions plugin on any project that defines a target platform which is a subproject in the build.
This works for me with tycho 0.20.0, can you please retest?
(In reply to Robert Munteanu from comment #1) > This works for me with tycho 0.20.0, can you please retest? I am not sure whether you are talking about the same thing. I think Borislav is talking about a POM like this one: <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <configuration> <target> <artifact> <groupId>org.eclipse.recommenders.codesearch</groupId> <artifactId>luna</artifactId> <version>0.5.0-SNAPSHOT</version> </artifact> </target> </configuration> </plugin>
(In reply to Andreas Sewe from comment #2) > (In reply to Robert Munteanu from comment #1) > > This works for me with tycho 0.20.0, can you please retest? > > I am not sure whether you are talking about the same thing. I think Borislav > is talking about a POM like this one: Sorry about the garbage; accidentally hit send. :-( <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <configuration> <target> <artifact> <groupId>org.eclipse.recommenders.codesearch</groupId> <artifactId>luna</artifactId> <version>0.5.0-SNAPSHOT</version> </artifact> </target> </configuration> </plugin> Now, if you use mvn org.eclipse.tycho:tycho-versions-plugin:0.20.0:set-version -DnewVersion=0.6.0-SNAPSHOT to set the version of the luna artifact, the above plugin configuration (from the same reactor) is left untouched, even with Tycho 0.20.0 (just double-checked).
Ah, ok. I did not see this because I use ${project.version} in my builds.
(In reply to Robert Munteanu from comment #4) > Ah, ok. I did not see this because I use ${project.version} in my builds. Yes, in our case ${project.version} doesn't work as a workaround as that variable is expanded to the version of the child project, not the (different) version of the parent project (which configures the target-platform-configuration plugin). But defining a targetVersion property in the parent and then setting that as well with set-version using -Dproperties=targetVersion is a good-enough workaround.
New Gerrit change created: https://git.eclipse.org/r/94263
@Guillaume thanks for proposing a patch! I will review as soon as I find some time but latest until end of this week
Gerrit change https://git.eclipse.org/r/94263 was merged to [master]. Commit: http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=75110302ffd9155f4e3a1dd84078f042313300b8
@Guillaume thanks for the patch!