Replies: 2 comments 5 replies
-
In OSGi you usually use Semantic Versioning, so setting the bundle version to your So you have two choices regarding your setup:
So it depends a bit on what you want to archive here what is the best setup/choice. |
Beta Was this translation helpful? Give feedback.
-
I don't know if this is exactly what you want, but in Eclipse ESCET we use this:
We have other ways to set the major/minor versions, but the qualifier is fixed during the build. We pass the qualifier via the property to Maven on the command line in the One reason we need this, is that we have plugins that take files from other plugins during the build. We therefore can't rely on e.g. Git timestamps and use a global qualifier for all plugins during a single build. |
Beta Was this translation helpful? Give feedback.
-
Following the samples I found, I tried to setup a simple experimental scenario to try CI friendly versions using Tycho 4.0.0-SNAPSHOT.
As POM version I defined
<version>${releaseVersion}${qualifier}</version>
, the default values of the corresponding build properties were defined as:As the manifest property
Bundle-Version
is mandatory (and no variables seem to be accepted here) I defined it asWhen I try to set a different releaseVersion on the command line
I get an error:
Is there any other way to define
Bundle-Version
in the manifest, which allows choosing version property values at build time? Keeping versions out of the source code and having them injected by the CI build is the main point of CI friendly builds.Beta Was this translation helpful? Give feedback.
All reactions