Custom 'BuildTimestampProvider' stopped working using tycho version 4.0.10 #5741
-
|
I have implemented a custom BuildTimestampProvider in my OSGi-based application to update the .qualifier with the current timestamp only for bundles that have actually changed, instead of updating all bundles. The custom timestamp provider is implemented as follows: It is used in the pom.xml as shown below: This setup works with Tycho version 2.7.5 but stopped working after upgrading the application to Tycho version 4.0.10. What changes are required to make it work with the newer version of Tycho? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Have you recompiled your custom provider using Tycho 4.x API? By the way 4.x is EOL now and 5.x is the current latest release so you maybe want to upgrade to 5.x anyways. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I tried compiling a custom There are errors for other packages too, but the primary issue is that A sample pom for tycho version 4.0.10 looks like this: It works when we change |
Beta Was this translation helpful? Give feedback.
-
|
@ChetanKaila Looks to me like the interface was moved into a different package when it added a new required method. Does it work if you update and recompile your provider? |
Beta Was this translation helpful? Give feedback.
-
|
The interface is now in the |
Beta Was this translation helpful? Give feedback.
The interface is now in the
tycho-spimodule: https://github.com/eclipse-tycho/tycho/blob/main/tycho-spi/src/main/java/org/eclipse/tycho/build/BuildTimestampProvider.java#L22