Skip to content

Gradle Configuring the jar task with additional bnd instructions using Kotlin DSL

Peter Kirschner edited this page Nov 28, 2025 · 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