Skip to content

Commit

Permalink
Fix Bundle plugin setup
Browse files Browse the repository at this point in the history
  • Loading branch information
weisJ committed Dec 8, 2024
1 parent 727280f commit 55871f3
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import aQute.bnd.gradle.Bundle
import com.diffplug.spotless.extra.wtp.EclipseWtpFormatterStep
import com.github.vlsi.gradle.crlf.CrLfSpec
import com.github.vlsi.gradle.crlf.LineEndings
Expand All @@ -7,7 +8,6 @@ import com.github.vlsi.gradle.properties.dsl.toBool
import com.github.vlsi.gradle.publishing.dsl.simplifyXml
import com.github.vlsi.gradle.publishing.dsl.versionFromResolution
import net.ltgt.gradle.errorprone.errorprone
import aQute.bnd.gradle.Bundle

plugins {
idea
Expand All @@ -17,13 +17,7 @@ plugins {
id("com.github.vlsi.gradle-extensions")
id("com.github.vlsi.stage-vote-release")
id("net.ltgt.errorprone") apply false
id("biz.aQute.bnd.builder")
}
//sourceSets {
// bundle
//}
tasks.register<Bundle>("bundle") {
//from(sourceSets.bundle.output)
id("biz.aQute.bnd.builder") apply false
}

val skipJavadoc by props()
Expand Down Expand Up @@ -263,6 +257,12 @@ allprojects {
}
}

apply(plugin = "biz.aQute.bnd.builder")
register<Bundle>("bundle") {
bundle {
}
}

withType<Jar>().configureEach {
manifest {
attributes["Bundle-License"] = "MIT"
Expand All @@ -274,10 +274,6 @@ allprojects {
attributes["Implementation-Vendor"] = "JSVG"
attributes["Implementation-Vendor-Id"] = "com.github.weisj"
}
bundle {
bnd["-exportcontents"] = "*"
bnd["-sources"] = "true"
}

CrLfSpec(LineEndings.LF).run {
into("META-INF") {
Expand Down

0 comments on commit 55871f3

Please sign in to comment.