Skip to content

Commit cfaf873

Browse files
committed
Merge pull request hamcrest#98 from josephw/use-osgi-plugin-to-make-jar-into-a-bundle
Apply the 'osgi' plugin, so the jar includes a bundle manifest.
2 parents 90ebec4 + ffaf7fe commit cfaf873

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import static org.gradle.api.JavaVersion.VERSION_1_7
22

33
apply plugin: 'java'
44
apply plugin: 'maven'
5+
apply plugin: 'osgi'
56
apply plugin: 'signing'
67

78
sourceCompatibility = VERSION_1_7
@@ -47,6 +48,10 @@ jar {
4748
attributes 'Implementation-Title': 'hamcrest-all',
4849
'Implementation-Vendor': 'hamcrest.org',
4950
'Implementation-Version': version
51+
instruction 'Import-Package', '''javax.xml.namespace; resolution:=optional,
52+
javax.xml.xpath; resolution:=optional,
53+
org.w3c.dom; resolution:=optional,
54+
*'''
5055
}
5156
}
5257

0 commit comments

Comments
 (0)