From a1b5a77310818e1c2006aaeac0c6d1b131bbf507 Mon Sep 17 00:00:00 2001 From: Wenxi Zeng Date: Wed, 23 Jul 2025 14:28:39 -0500 Subject: [PATCH 1/2] prepare release 1.21.0 --- .../main/java/com/segment/analytics/kotlin/core/Constants.kt | 2 +- gradle.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/segment/analytics/kotlin/core/Constants.kt b/core/src/main/java/com/segment/analytics/kotlin/core/Constants.kt index d99efefe..15c47619 100644 --- a/core/src/main/java/com/segment/analytics/kotlin/core/Constants.kt +++ b/core/src/main/java/com/segment/analytics/kotlin/core/Constants.kt @@ -1,7 +1,7 @@ package com.segment.analytics.kotlin.core object Constants { - const val LIBRARY_VERSION = "1.20.0" + const val LIBRARY_VERSION = "1.21.0" const val DEFAULT_API_HOST = "api.segment.io/v1" const val DEFAULT_CDN_HOST = "cdn-settings.segment.com/v1" } diff --git a/gradle.properties b/gradle.properties index 08db8e59..8c71c7fd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,8 +24,8 @@ android.disableAutomaticComponentCreation=true # Deployment variables GROUP=com.segment.analytics.kotlin -VERSION_CODE=1200 -VERSION_NAME=1.20.0 +VERSION_CODE=1210 +VERSION_NAME=1.21.0 POM_NAME=Segment for Kotlin POM_DESCRIPTION=The hassle-free way to add analytics to your Kotlin app. From cc7185854574c78ed35c6f169dbd7b4b4c7dadc8 Mon Sep 17 00:00:00 2001 From: Wenxi Zeng Date: Wed, 23 Jul 2025 14:50:13 -0500 Subject: [PATCH 2/2] update sonatype to use staging api --- gradle/promote.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gradle/promote.gradle b/gradle/promote.gradle index 646d7f3d..864e3af0 100644 --- a/gradle/promote.gradle +++ b/gradle/promote.gradle @@ -30,6 +30,10 @@ nexusPublishing { in system environments be sure to set the variable names exactly as above. */ - sonatype() + sonatype { + // New Portal OSSRH Staging API endpoints + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) + } } } \ No newline at end of file