Closed mnlipp closed 7 years ago
To use the Bnd Gradle plugin for workspace builds you
apply plugin: 'biz.aQute.bnd'
It sounds like you are using the Bnd Gradle plugin for non-workspace builds:
apply plugin: 'biz.aQute.bnd.builder'
Indeed, I am. Because I'm building a library and only want to make it "OSGi aware/useable". So there is no bnd-based way to release the bundle when using the non-workspace build?
Releasing to a repository implies a workspace with configured repositories. When using a non-workspace build, you don't have any configured repositories to release a bundle into. Bnd just makes the bundle jar (and allows to you to baseline it). Releasing is done by other gradle plugins such as a publishing plugin.
Okay, understood. Thanks for the quick response.
The documentation of the gradle plugin (https://github.com/bndtools/bnd/blob/master/biz.aQute.bnd.gradle/README.md#gradle-plugin-for-workspace-builds) states that the gradle plugin provides additional tasks.
However, trying to use the
release
task, I get an error from gradle that this task doesn't exists. Agradlew tasks --all
lists (from all the additional tasks mentioned in the documentation) only thebaseline
task.Actually, I don't really assume that nobody has noticed this before, so I'm probably doing something wrong. Considers this a documentation issue rather than an implementation issue. Nevertheless, regarding my attempt to release my bundle, I'm stuck.