Skip to content

Commit 204e796

Browse files
Re-add OSGI manifest
Fixes #107
1 parent aff80f4 commit 204e796

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build.gradle

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
3+
id("biz.aQute.bnd.builder") version "6.2.0"
34
}
45

56
apply plugin: 'maven-publish'
@@ -108,6 +109,18 @@ dependencies {
108109
integrationTest213 jacksonDatabind + '2.13.0'
109110
}
110111

112+
jar {
113+
// define OSGi bundle manifest
114+
bundle {
115+
bnd(
116+
"Bundle-Name": "bson4jackson",
117+
"Bundle-SymbolicName": "de.undercouch.bson4jackson",
118+
"Bundle-Vendor": "Michel Kraemer",
119+
'-exportcontents': "de.undercouch.*;version=${version}"
120+
)
121+
}
122+
}
123+
111124
task doIntegrationTest21(type: Test) {
112125
useJUnit {
113126
excludeCategories 'de.undercouch.bson4jackson.RequiresJackson_v2_3'

0 commit comments

Comments
 (0)