Skip to content

Commit f770172

Browse files
authored
Merge pull request #56 from Lana11s/master
Configure Manifest task to create valid OSGi bundle
2 parents ff3865b + c885c60 commit f770172

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ plugins {
99
id 'maven-publish'
1010
id 'signing'
1111
id "io.github.gradle-nexus.publish-plugin" version "1.0.0"
12+
id "biz.aQute.bnd.builder" version "6.2.0"
1213
}
1314

1415
def getDevelopmentVersion() {
@@ -135,3 +136,10 @@ tasks.withType(PublishToMavenRepository) {
135136
dependsOn build
136137
}
137138

139+
jar {
140+
manifest {
141+
attributes('Automatic-Module-Name': 'graphql-java-extended-scalars',
142+
'-exportcontents': 'graphql.scalars.*',
143+
'-removeheaders': 'Private-Package')
144+
}
145+
}

0 commit comments

Comments
 (0)