Skip to content

Commit c885c60

Browse files
committed
Configure Manifest task to create valid OSGi bundle
1 parent 8c3b172 commit c885c60

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)