mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Filter sun.security.* from smack-java7 Import-Package
Quoting Jens Offenbach: "The header entry [sun.* in Import-Package] MUST be removed because its a native package and not exported by the OSGi framework. The bundle cannot be resolved. It is up to the OSGi framework deployer to declare this package as beeing "bootdelegated". This tells the classloader of the bundle to delegate a corresponding package request to the installed JRE. Only remove this entry and leave the "magic" of resolution to OSGi" SMACK-343
This commit is contained in:
parent
b78a711ebd
commit
5a9e353f2c
1 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
// Although the osgi plugin is already applied by the root project's
|
||||
// subprojects closure, we need to re-apply it here so that the
|
||||
// manifest is a OsgiManifest. Possible caused by
|
||||
// evaluationDependsOnChildren in the root project.
|
||||
apply plugin: 'osgi'
|
||||
|
||||
description = """\
|
||||
Smack for Java7 (or higher).
|
||||
This is a pseudo-artifact that pulls all the required dependencies to
|
||||
|
@ -13,3 +19,9 @@ dependencies {
|
|||
javadoc {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
instruction 'Import-Package', '!sun.security.*, *'
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue