From 6610cafc6b222c1324637676385d8d008c8b9ee8 Mon Sep 17 00:00:00 2001 From: Jeremie Bresson Date: Mon, 14 Oct 2024 07:54:32 +0200 Subject: [PATCH] Use gradle plugin "io.github.gradle-nexus.publish-plugin" to publish on maven central --- build.gradle | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 523c116f9..dac71dff7 100644 --- a/build.gradle +++ b/build.gradle @@ -4,9 +4,8 @@ plugins { id 'com.diffplug.spotless' version '6.2.0' id 'signing' id 'maven-publish' - id 'de.marcphilipp.nexus-publish' version '0.4.0' id 'net.researchgate.release' version '3.0.2' - id 'io.codearte.nexus-staging' version '0.22.0' + id 'io.github.gradle-nexus.publish-plugin' version '1.3.0' } wrapper { @@ -64,6 +63,7 @@ spotless { } nexusPublishing { + packageGroup = 'org.gitlab4j' repositories { sonatype { nexusUrl.set(uri("https://oss.sonatype.org/service/local/")) @@ -73,13 +73,6 @@ nexusPublishing { } } -nexusStaging { - serverUrl = "https://oss.sonatype.org/service/local/" - packageGroup = 'org.gitlab4j' - username = project.findProperty('sonatypeUser') ?: '' - password = project.findProperty('sonatypePassword') ?: '' -} - publishing { publications { mavenJava(MavenPublication) {