Skip to content

Commit 3249adf

Browse files
committed
Fix Central Portal releases
1 parent 3baa01c commit 3249adf

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
java-version: 17
2121
distribution: temurin
2222
cache: gradle
23-
- name: Publish to Maven Central
24-
run: ./gradlew deployNexus
23+
- name: Publish to Central Portal
24+
run: ./gradlew deployCentralPortal
2525
- name: Publish to GitHub Packages
2626
run: ./gradlew deployGithub

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ asm-commons = "9.6"
55
android-tools = "31.1.4"
66
kotlin = "2.0.0"
77
shadow = "8.3.0"
8-
publisher = "0.14.0"
8+
publisher = "0.18.0"
99
kotlinx-metadata = "0.9.0"
1010

1111
[libraries]

grease/build.gradle.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,17 @@ deployer {
7272
}
7373
}
7474

75-
// use "deployNexus" to deploy to OSSRH / maven central
76-
nexusSpec {
77-
auth.user = secret("SONATYPE_USER")
78-
auth.password = secret("SONATYPE_PASSWORD")
79-
syncToMavenCentral = true
75+
// use "deployCentralPortal" to deploy to central portal
76+
centralPortalSpec {
77+
auth.user.set(secret("SONATYPE_USER"))
78+
auth.password.set(secret("SONATYPE_PASSWORD"))
8079
}
8180

8281
// use "deployNexusSnapshot" to deploy to sonatype snapshots repo
8382
nexusSpec("snapshot") {
8483
auth.user = secret("SONATYPE_USER")
8584
auth.password = secret("SONATYPE_PASSWORD")
86-
repositoryUrl = ossrhSnapshots1
85+
repositoryUrl = "https://central.sonatype.com/repository/maven-snapshots/"
8786
release.version = "latest-SNAPSHOT"
8887
}
8988

0 commit comments

Comments
 (0)