Discussion:
[tycho-user] tycho-version-plugin: Update version range with SNAPSHOT version
s***@web.de
2017-09-15 14:17:22 UTC
Permalink
Hi Mailing list,

I observe following behaviour when I use tycho-version-plugin for updating project version and the version range to a new SNAPSHOT version and I'd like to find out if this behaviour is wrong or I forget to set a flag :)

My project setup looks like the following one:

project (version 1.2.3)
|_ bundle 1
|_ bundle 2 has bundle 1 as Required-Bundle with bundle-version=(0.0.0,1.2.3]

Now I'd like to update the project version to 1.2.4-SNAPSHOT with

"mvn org.eclipse.tycho:tycho-versions-plugin:1.0.0:set-version -Dtycho.mode=maven -DnewVersion=1.2.4-SNAPSHOT -DupdateVersionRangeMatchingBounds=true" (in the project root folder).

Then my project looks like the following one:

project (version 1.2.4-SNAPSHOT / 1.2.4.qualfier)
|_ bundle 1
|_ bundle 2 has bundle 1 as Required-Bundle with bundle-version=(0.0.0,1.2.4]

But then "mvn clean install" (in the project root) fails because bundle 2 cannot find bundle 1. When I change the bundle version ranges to (0.0.0,1.2.4.qualifier] or to (0.0.0,1.2.5] manually, everything is fine.

So my question is, is this a bug or do I forget to set additional flag during the version plugin call?

Thank you and best regards,

Sandra Parsick
Sievers, Jan
2017-09-18 07:56:58 UTC
Permalink
could be a bug in the updateVersionRangeMatchingBounds option.

https://github.com/eclipse/tycho/commit/bd715d9dc044256e9298a8b71cbab2b910f6623c

has some tests so you could check whether your scenario is covered.

Regards
Jan

On 15.09.17, 16:17, "tycho-user-***@eclipse.org on behalf of ***@web.de" <tycho-user-***@eclipse.org on behalf of ***@web.de> wrote:

Hi Mailing list,

I observe following behaviour when I use tycho-version-plugin for updating project version and the version range to a new SNAPSHOT version and I'd like to find out if this behaviour is wrong or I forget to set a flag :)

My project setup looks like the following one:

project (version 1.2.3)
|_ bundle 1
|_ bundle 2 has bundle 1 as Required-Bundle with bundle-version=(0.0.0,1.2.3]

Now I'd like to update the project version to 1.2.4-SNAPSHOT with

"mvn org.eclipse.tycho:tycho-versions-plugin:1.0.0:set-version -Dtycho.mode=maven -DnewVersion=1.2.4-SNAPSHOT -DupdateVersionRangeMatchingBounds=true" (in the project root folder).

Then my project looks like the following one:

project (version 1.2.4-SNAPSHOT / 1.2.4.qualfier)
|_ bundle 1
|_ bundle 2 has bundle 1 as Required-Bundle with bundle-version=(0.0.0,1.2.4]

But then "mvn clean install" (in the project root) fails because bundle 2 cannot find bundle 1. When I change the bundle version ranges to (0.0.0,1.2.4.qualifier] or to (0.0.0,1.2.5] manually, everything is fine.

So my question is, is this a bug or do I forget to set additional flag during the version plugin call?

Thank you and best regards,

Sandra Parsick
s***@web.de
2017-09-18 09:59:12 UTC
Permalink
Jan, thank you for answering. I checked the tests and my scenario isn't covered. Therefore, I opened a bug

https://bugs.eclipse.org/bugs/show_bug.cgi?id=522416

Best regards,

Sandra
Gesendet: Montag, 18. September 2017 um 09:56 Uhr
Betreff: Re: [tycho-user] tycho-version-plugin: Update version range with SNAPSHOT version
could be a bug in the updateVersionRangeMatchingBounds option.
https://github.com/eclipse/tycho/commit/bd715d9dc044256e9298a8b71cbab2b910f6623c
has some tests so you could check whether your scenario is covered.
Regards
Jan
Hi Mailing list,
I observe following behaviour when I use tycho-version-plugin for updating project version and the version range to a new SNAPSHOT version and I'd like to find out if this behaviour is wrong or I forget to set a flag :)
project (version 1.2.3)
|_ bundle 1
|_ bundle 2 has bundle 1 as Required-Bundle with bundle-version=(0.0.0,1.2.3]
Now I'd like to update the project version to 1.2.4-SNAPSHOT with
"mvn org.eclipse.tycho:tycho-versions-plugin:1.0.0:set-version -Dtycho.mode=maven -DnewVersion=1.2.4-SNAPSHOT -DupdateVersionRangeMatchingBounds=true" (in the project root folder).
project (version 1.2.4-SNAPSHOT / 1.2.4.qualfier)
|_ bundle 1
|_ bundle 2 has bundle 1 as Required-Bundle with bundle-version=(0.0.0,1.2.4]
But then "mvn clean install" (in the project root) fails because bundle 2 cannot find bundle 1. When I change the bundle version ranges to (0.0.0,1.2.4.qualifier] or to (0.0.0,1.2.5] manually, everything is fine.
So my question is, is this a bug or do I forget to set additional flag during the version plugin call?
Thank you and best regards,
Sandra Parsick
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Loading...