Skip to content

Configuring the jar task with additional bnd instructions using Kotlin DSL

Raymond Augé edited this page Nov 8, 2019 · 1 revision

Configuring the jar task with additional bnd instructions using Kotlin DSL

apply(plugin = "biz.aQute.bnd.builder")

tasks["jar"].withConvention(aQute.bnd.gradle.BundleTaskConvention::class) {
	setBnd("""
		-noextraheaders: true
		-removeheaders: Private-Package
	""")
}
Clone this wiki locally