publish to a maven repository, so in the cnf/bnd.bnd file we have
-plugin.9.Release: \
\
aQute.bnd.repository.maven.provider.MavenBndRepository; \
name = Release ;
-pom: version = ${versionmask;===;${@version}-SNAPSHOT}
But this will always do a snapshot release. If I want to do a "release" release,
I need to change the bnd.bnd file, commit it, run the build, then when its done
change the code to put the "-SNAPSHOT" back again. This would seem to be rather
tedious so I haven't done it. I don't really like the idea of locally modifying the file
as part of the script that does the build, that seems nasty.
Is is possible to somehow override this from the gradle command line? I'm thinking
it might be useful to be able to have 2 jenkins build jobs, one that does a snapshot build
and one that then does a release build.
It's quite possible though that I'm just mad and shouldn't be wanting to do that. I just don't
know how else I have a nightly build that runs and makes snapshot artefacts available,
and then have some kind of "release" process that ends up publishing to a different place.
Maybe I *don't* have a nightly build that produces a snapshot, but that *every* nightly build
is actually a "release" build, and I leave the "-SNAPSHOT" off completely and use
api-baselining support and just essentially semantically version each commit?
I know there are probably many ways t do this, but any experiences would be great.
Thanks.