Skip to content

Commit 7ab459a

Browse files
committed
fix: upgrade nexus-publish to 2.0.0 and bump version to 1.26.0
- Upgrade io.github.gradle-nexus.publish-plugin from 1.1.0 to 2.0.0 to fix compatibility with Maven Central's new OSSRH Staging API - Add in-memory PGP signing support in mvn-publish.gradle - Bump VERSION_NAME to 1.26.0 / VERSION_CODE to 1260
1 parent 1311377 commit 7ab459a

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ buildscript {
2020

2121
plugins {
2222
id "io.snyk.gradle.plugin.snykplugin" version "0.4"
23-
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
23+
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
2424
}
2525

2626
allprojects {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ android.disableAutomaticComponentCreation=true
2424
# Deployment variables
2525
GROUP=com.segment.analytics.kotlin
2626

27-
VERSION_CODE=1250
28-
VERSION_NAME=1.25.0
27+
VERSION_CODE=1260
28+
VERSION_NAME=1.26.0
2929

3030
POM_NAME=Segment for Kotlin
3131
POM_DESCRIPTION=The hassle-free way to add analytics to your Kotlin app.

gradle/mvn-publish.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,14 @@ publishing {
7474
}
7575
}
7676

77-
7877
signing {
78+
def signingKey = findProperty("signing.key")
79+
if (signingKey) {
80+
useInMemoryPgpKeys(findProperty("signing.keyId"), signingKey, findProperty("signing.password"))
81+
}
7982
sign publishing.publications
8083
}
8184

8285
publish.dependsOn build
8386
publishToMavenLocal.dependsOn build
84-
publishToSonatype.dependsOn publish
87+
publishToSonatype.dependsOn publish

0 commit comments

Comments
 (0)