Skip to content

Commit

Permalink
Use gradle plugin "io.github.gradle-nexus.publish-plugin" to publish …
Browse files Browse the repository at this point in the history
…on maven central
  • Loading branch information
jmini committed Oct 14, 2024
1 parent 607d901 commit 6610caf
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -64,6 +63,7 @@ spotless {
}

nexusPublishing {
packageGroup = 'org.gitlab4j'
repositories {
sonatype {
nexusUrl.set(uri("https://oss.sonatype.org/service/local/"))
Expand All @@ -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) {
Expand Down

0 comments on commit 6610caf

Please sign in to comment.