Skip to content

Commit ffaf7fe

Browse files
committed
Make the optional OSGi imports explicit.
Specifically list the packages that are optional. This won't affect the current Import-Package, but it will mean that new additions don't surprise by appearing as optional in future.
1 parent 3cbf9d9 commit ffaf7fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ jar {
4242
attributes 'Implementation-Title': 'hamcrest-all',
4343
'Implementation-Vendor': 'hamcrest.org',
4444
'Implementation-Version': version
45-
instruction 'Import-Package', '*; resolution:=optional'
45+
instruction 'Import-Package', '''javax.xml.namespace; resolution:=optional,
46+
javax.xml.xpath; resolution:=optional,
47+
org.w3c.dom; resolution:=optional,
48+
*'''
4649
}
4750
}
4851

0 commit comments

Comments
 (0)