Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] semantic versioning / Re: Starting a 2.0 with breaking changes soon?

Having a simple solution to check/enforce semantic versioning during Maven-builds is a topic I would also find very interesting. Using API Tools like it is done for the Eclipse Platform project builds at the moment seems to be cumbersome. A single plug-in solution would be great.
Therefore I already had the Tycho issue Christoph mentioned (https://github.com/eclipse/tycho/issues/115) on my list of interesting issues I'm willing to invest time into.
 
I'm not familiar with the BND-Baseline-Maven-Plugin yet, but if it is a proficient solution, using it directly (or indirectly) looks like a good idea.
But the question of supported baseline repository format is important for Eclipse projects that only build a p2-repo.
IIRC correctly Tycho can build repositories that can be consumed by p2 and Maven? Maybe this would already help.
 
However it would be nicer if Tycho could build a bridge and provide an extension or could wrap the BND-plugin to make p2-repos useable as baseline as they are.
 
Gesendet: Donnerstag, 17. Februar 2022 um 12:20 Uhr
Von: "Mickael Istria" <mistria@xxxxxxxxxx>
An: "Maven Integration for Eclipse developers mailing list" <m2e-dev@xxxxxxxxxxx>
Betreff: Re: [m2e-dev] semantic versioning / Re: Starting a 2.0 with breaking changes soon?
 
 
On Thu, Feb 17, 2022 at 11:58 AM Christoph Läubrich <laeubi@xxxxxxxxxxxxxx> wrote:
why not simply use x-unsupported then to make it really clear? ;-)
 
Is such x-unsupported already used by some other projects? If so, it wouldn't be a bad thing to use it. But that's exactly the meaning of x-internal though and I don't think we can say that x-internal + the warnings is generate are ambiguous. So I'm not sure changing the flag would improve anything, unless it's more standard.
 
Or simply adopt API guardian here:
https://github.com/eclipse-m2e/m2e-core/discussions/566
 
I'm not convinced that "1 more non-standard technology" is the solution here. Why would APIGuardian help here when you already say we don't even do package versioning properly? APIGuardian require clients to care about it, if most clients (connectors) don't care about package/bundle versions already, why can we expect they'll care about APIGuardian annotations?
 
There is  https://github.com/bndtools/bnd/tree/master/maven/bnd-baseline-maven-plugin and I created  https://github.com/eclipse/tycho/issues/115
 
That's interesting, but this would better be directly in the IDE. Is the BND Eclipse plugin capable of baselining?
 
Actually we should have all the bits there as we can already do a
pde-api-tools check so a semver check would just replace pde-api-tools
with bnd call, one might even be able to use the bnd-mvan plugin alone
and just injecting the <base> configuration for convenience
 
That would be a very interesting topic, worth articles and conference presentations as well. If we can have better baselining thanks to BND than what PDE offers and still fits in the Eclipse needs, then it means we can progressively drop PDE API Tools in favor of BND. One less thing to maintain, more focus on 1 better solution ;)
_______________________________________________ m2e-dev mailing list m2e-dev@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-dev
 
 

Back to the top