diff --git a/smack-java7/build.gradle b/smack-java7/build.gradle index 52f0197d7..78a1799e1 100644 --- a/smack-java7/build.gradle +++ b/smack-java7/build.gradle @@ -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.*, *' + } +} \ No newline at end of file