Skip to content

Commit ec5e0c9

Browse files
Update maven central secrets and plugin version for publishing releases.
Based on square/logcat#42. Depends on getting access to these secrets, requested in squareup/ospo#1015.
1 parent d203233 commit ec5e0c9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/publish-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
with:
4444
task: publish
4545
env:
46-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
47-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
48-
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
46+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
47+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
48+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SECRET_KEY }}
49+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SECRET_PASSPHRASE }}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ subprojects {
7676

7777
plugins.withId("com.vanniktech.maven.publish.base") {
7878
configure<MavenPublishBaseExtension> {
79-
publishToMavenCentral(SonatypeHost.S01, automaticRelease = true)
79+
publishToMavenCentral(automaticRelease = true)
8080
signAllPublications()
8181
pomFromGradleProperties()
8282

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ compose-sample-compiler = "1.5.3"
2020
[libraries]
2121

2222
build-android = "com.android.tools.build:gradle:8.12.0"
23-
build-mavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.25.3"
23+
build-mavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.36.0"
2424
build-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
2525
build-ktlint = "org.jlleitschuh.gradle:ktlint-gradle:11.6.1"
2626
build-binaryCompatibility = "org.jetbrains.kotlinx:binary-compatibility-validator:0.6.0"

0 commit comments

Comments
 (0)