From 863e249be9eabf12b59a321c4e21a8a98831cb96 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sun, 7 Apr 2024 16:37:13 -0700 Subject: [PATCH] Update nexus publishing plugin to 2.0.0 --- build.gradle.kts | 1 + gradle/libs.versions.toml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index eb56e68..bede9cf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,6 +10,7 @@ plugins { dependencies { api(libs.indra.common) api(libs.indra.publishing.sonatype) + api(libs.nexus.publish) // Upgrade version from indra-publishing-sonatype transitive dep api(libs.indra.crossdoc) api(libs.errorprone.gradle) api(libs.spotless) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 45e9d80..e2c1d24 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,15 +1,17 @@ [plugins] -nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version = "2.0.0" } +nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexus-publish" } [versions] indra = "3.1.3" gradleErrorprone = "3.1.0" spotless = "6.25.0" +nexus-publish = "2.0.0" [libraries] indra-common = { module = "net.kyori:indra-common", version.ref = "indra" } indra-crossdoc = { module = "net.kyori:indra-crossdoc", version.ref = "indra" } indra-publishing-sonatype = { module = "net.kyori:indra-publishing-sonatype", version.ref = "indra" } +nexus-publish = { module = "io.github.gradle-nexus:publish-plugin", version.ref = "nexus-publish" } errorprone-gradle = { module = "net.ltgt.gradle:gradle-errorprone-plugin", version.ref = "gradleErrorprone" } spotless = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" } palantir-baseline = { module = "com.palantir.baseline:gradle-baseline-java", version = "5.37.0" }