@@ -11,7 +11,7 @@ plugins {
1111 id ' maven-publish'
1212 id ' signing'
1313 id ' groovy'
14- id ' biz.aQute.bnd.builder' version ' 6.2 .0'
14+ id ' biz.aQute.bnd.builder' version ' 7.1 .0'
1515 id ' io.github.gradle-nexus.publish-plugin' version ' 2.0.0'
1616 id ' com.github.ben-manes.versions' version ' 0.53.0'
1717 id " me.champeau.jmh" version " 0.7.3"
@@ -81,13 +81,15 @@ repositories {
8181
8282jar {
8383 manifest {
84- attributes(' Automatic-Module-Name' : ' org.dataloader' ,
85- ' -exportcontents' : ' org.dataloader.*' ,
86- ' -removeheaders' : ' Private-Package' )
84+ attributes(' Automatic-Module-Name' : ' org.dataloader' )
8785 }
88- bnd('''
86+ bundle {
87+ bnd('''
88+ -exportcontents: org.dataloader.*
89+ -removeheaders: Private-Package
8990Import-Package: org.jspecify.annotations;resolution:=optional,*
9091''' )
92+ }
9193}
9294
9395dependencies {
@@ -141,10 +143,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
141143 from javadoc. destinationDir
142144}
143145
144- artifacts {
145- archives sourcesJar
146- archives javadocJar
147- }
146+
148147
149148testing {
150149 suites {
@@ -177,9 +176,9 @@ publishing {
177176 publications {
178177 graphqlJava(MavenPublication ) {
179178 from components. java
180- groupId ' com.graphql-java'
181- artifactId ' java-dataloader'
182- version project. version
179+ groupId = ' com.graphql-java'
180+ artifactId = ' java-dataloader'
181+ version = project. version
183182
184183 artifact sourcesJar
185184 artifact javadocJar
@@ -237,7 +236,7 @@ nexusPublishing {
237236}
238237
239238signing {
240- required { ! project. hasProperty(' publishToMavenLocal' ) }
239+ required = { ! project. hasProperty(' publishToMavenLocal' ) }
241240 def signingKey = System . env. MAVEN_CENTRAL_PGP_KEY
242241 useInMemoryPgpKeys(signingKey, " " )
243242 sign publishing. publications
0 commit comments