Closed ieugen closed 5 years ago
I've switched to using snapshotFromProp()
which works. Leaving it open for other suggestions.
Thanks for putting this detail out here, in case anyone else encounters it.
Since OSGI (based on my reading of that spec) isn't SemVer-compliant, I would consider any explicit support for this out of scope. It's good that there's a workaround with snapshots though.
(For others) This is the syntax for their versions. The .qualifier
piece is where it becomes non-compliant with SemVer, which would require something more like -qualifier
.
version ::= <major> [ ‘.’ <minor> [ ‘.’ <micro> [ ‘.’ <qualifier> ]]]
Hi,
I'm using reckon and I've tried to build an osgi bundle with bnd plugin. It seems there are some issue. I'm documenting them here until I know exactly where to put them.
This issue appears from the OSGi/bnd view of how versions should look like. [1]. Since it is unlikely that the OSGi spec will change, I think we need a workaround for this.
Any ideas? Right now I can make it work if I switch the stage:
./gradlew -Preckon.stage=rc build
and I get version0.1.0-rc.1
. This has some disadvantages however.I'm using [2] configuration:
and when I build my project I get:
[1] https://bnd.bndtools.org/chapters/170-versioning.html [2] https://github.com/bndtools/bnd/tree/master/biz.aQute.bnd.gradle#gradle-plugin-for-non-workspace-builds