Skip to content

Commit 908682e

Browse files
authored
Merge pull request #69 from Petrakeas/petrakeas/fix/sonatype-migration
Maven Central publishing update
2 parents fdcd912 + c98e04d commit 908682e

File tree

3 files changed

+152
-116
lines changed

3 files changed

+152
-116
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Transifex Native Android SDK
22

33
[![CI](https://github.com/transifex/transifex-java/actions/workflows/gradle.yml/badge.svg)](https://github.com/transifex/transifex-java/actions/workflows/gradle.yml)
4-
[![Maven Central](https://img.shields.io/maven-central/v/com.transifex.txnative/txsdk?color=32c955)](https://maven-badges.herokuapp.com/maven-central/com.transifex.txnative/txsdk)
4+
[![Maven Central](https://img.shields.io/maven-central/v/com.transifex.txnative/txsdk?color=32c955)](https://central.sonatype.com/artifact/com.transifex.txnative/txsdk)
55

66
Transifex Native Android SDK is a collection of tools to easily localize your Android applications
77
using [Transifex Native](https://www.transifex.com/native/). The Android library can fetch translations

TransifexNativeSDK/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ buildscript {
3232
}
3333

3434
plugins {
35-
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
35+
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
3636
id 'com.android.application' version '8.1.0' apply false
3737
id 'com.android.library' version '8.1.0' apply false
3838
id 'org.jetbrains.kotlin.android' version '1.9.20' apply false
@@ -70,15 +70,17 @@ if (pgpKeyContent != null) {
7070
ext['signing.secretKeyRingFile'] = keyFile.absolutePath
7171
}
7272

73+
// According to https://github.com/gradle-nexus/publish-plugin?tab=readme-ov-file#publishing-to-maven-central-via-sonatype-central
7374
nexusPublishing {
7475
repositories {
76+
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
7577
sonatype {
76-
stagingProfileId = 'e1e4b9ea52730'
77-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
78-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
78+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
79+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
7980
username = ossrhUsername
8081
password = ossrhPassword
8182
version = sdkVersion
83+
group = pomGroupID
8284
}
8385
}
8486
}

0 commit comments

Comments
 (0)