From 47d95034da3dcf2b9d2bdcd69c26f0d6e34be5ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Lo=CC=81pez=20Man=CC=83as?= Date: Mon, 14 Jul 2025 22:42:51 +0200 Subject: [PATCH 1/2] chore: switched environment URLs --- .../convention/src/main/kotlin/PublishingConventionPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt b/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt index 7cd066c1..fd6184d8 100644 --- a/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt @@ -89,9 +89,9 @@ class PublishingConventionPlugin : Plugin { repositories { maven { val releasesRepoUrl = - uri("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/") - val snapshotsRepoUrl = uri("https://central.sonatype.com/repository/maven-snapshots/") + val snapshotsRepoUrl = + uri("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/") url = if (project.version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl credentials { username = project.findProperty("sonatypeToken") as String? From 6a02e9f54886b4c0cbbac33c797bdbfe18134815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Lo=CC=81pez=20Man=CC=83as?= Date: Mon, 14 Jul 2025 22:47:06 +0200 Subject: [PATCH 2/2] chore: using maven central URL --- .../src/main/kotlin/PublishingConventionPlugin.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt b/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt index fd6184d8..758a7bf2 100644 --- a/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt @@ -88,11 +88,7 @@ class PublishingConventionPlugin : Plugin { } repositories { maven { - val releasesRepoUrl = - uri("https://central.sonatype.com/repository/maven-snapshots/") - val snapshotsRepoUrl = - uri("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/") - url = if (project.version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl + url = uri("https://central.sonatype.com/repository/maven-snapshots/") credentials { username = project.findProperty("sonatypeToken") as String? password = project.findProperty("sonatypeTokenPassword") as String?