Skip to content

Commit

Permalink
Re-add OSGI manifest
Browse files Browse the repository at this point in the history
Fixes #107
  • Loading branch information
michel-kraemer committed Mar 27, 2022
1 parent aff80f4 commit 204e796
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("biz.aQute.bnd.builder") version "6.2.0"
}

apply plugin: 'maven-publish'
Expand Down Expand Up @@ -108,6 +109,18 @@ dependencies {
integrationTest213 jacksonDatabind + '2.13.0'
}

jar {
// define OSGi bundle manifest
bundle {
bnd(
"Bundle-Name": "bson4jackson",
"Bundle-SymbolicName": "de.undercouch.bson4jackson",
"Bundle-Vendor": "Michel Kraemer",
'-exportcontents': "de.undercouch.*;version=${version}"
)
}
}

task doIntegrationTest21(type: Test) {
useJUnit {
excludeCategories 'de.undercouch.bson4jackson.RequiresJackson_v2_3'
Expand Down

0 comments on commit 204e796

Please sign in to comment.