TomDmitriev / gradle-bundle-plugin

Apache License 2.0
47 stars 24 forks source link

configure bnd buildpath (i.e. classpath) #88

Closed rotty3000 closed 3 years ago

rotty3000 commented 5 years ago

Currently the buildpath (classpath) is hard coded to ["compileOnly", "runtime"] which has a couple of issues.

a) it includes runtime configuration which is not always desirable b) it does not allow for BOM dependencies supported since gradle 4.6 and which inherit from the implementation configuration. For example, the new compileClasspath and runtimeClasspath configurations [1].

[1] https://docs.gradle.org/4.6/userguide/managing_transitive_dependencies.html#sec:bom_import

At some point in the future you may want to consider changing the default to simply ["compileClasspath"].