diff --git a/build.gradle b/build.gradle index 018e19eeb..a26167bd9 100644 --- a/build.gradle +++ b/build.gradle @@ -96,7 +96,10 @@ allprojects { "Implementation-Vendor-Id": project.group, "Implementation-Version": project.version, "Built-By": System.getProperty("user.name"), - "Built-JDK": System.getProperty("java.version") + "Built-JDK": System.getProperty("java.version"), + "-removeheaders": 'Private-Package', + "Export-Package": 'org.quartz.*', + "Import-Package": '*;resolution:=optional' ) } } diff --git a/quartz-jobs/build.gradle b/quartz-jobs/build.gradle index 17723aa35..392b5b705 100644 --- a/quartz-jobs/build.gradle +++ b/quartz-jobs/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java-library' id 'maven-publish' + id 'biz.aQute.bnd.builder' } dependencies { diff --git a/quartz/build.gradle b/quartz/build.gradle index f1a94fc67..ebcc24fba 100644 --- a/quartz/build.gradle +++ b/quartz/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java-library' id 'maven-publish' + id 'biz.aQute.bnd.builder' } repositories { @@ -70,4 +71,4 @@ processResources { filesMatching('**/quartz-build.properties') { expand([version: project.version, fullname: project.fullname, name: project.name]) } -} +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index a06c1ed2e..a79ddb03a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -2,6 +2,7 @@ pluginManagement { plugins { id("io.github.gradle-nexus.publish-plugin") version '2.0.0' + id ("biz.aQute.bnd.builder") version '6.4.0' } }