From c885c60576ba25192d0631a34a8aa47a2c9b6df4 Mon Sep 17 00:00:00 2001 From: Lana11s Date: Sun, 27 Mar 2022 08:31:12 +0200 Subject: [PATCH] Configure Manifest task to create valid OSGi bundle --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 0a0c7ae..e428ceb 100644 --- a/build.gradle +++ b/build.gradle @@ -9,6 +9,7 @@ plugins { id 'maven-publish' id 'signing' id "io.github.gradle-nexus.publish-plugin" version "1.0.0" + id "biz.aQute.bnd.builder" version "6.2.0" } def getDevelopmentVersion() { @@ -135,3 +136,10 @@ tasks.withType(PublishToMavenRepository) { dependsOn build } +jar { + manifest { + attributes('Automatic-Module-Name': 'graphql-java-extended-scalars', + '-exportcontents': 'graphql.scalars.*', + '-removeheaders': 'Private-Package') + } +}