Skip to content

Commit 7ebb99b

Browse files
committed
Use a working plugin
1 parent 28b5212 commit 7ebb99b

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/release_to_maven.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: ./gradlew clean build
4343

4444
- name: Publish package
45-
run: ./gradlew publishToSonatype
45+
run: ./gradlew publishToCentralPortal
4646
env:
47-
SONATYPE_USERNAME: ${{ secrets.NEXUS_USERNAME }}
48-
SONATYPE_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
47+
USERNAME: ${{ secrets.NEXUS_USERNAME }}
48+
PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

build.gradle.kts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import net.thebugmc.gradle.sonatypepublisher.PublishingType
2+
13
plugins {
24
id("java-library")
3-
id("eu.kakde.gradle.sonatype-maven-central-publisher") version "1.0.6"
5+
id("net.thebugmc.gradle.sonatype-central-portal-publisher") version "1.2.4"
46
id("maven-publish")
57
id("signing")
68
}
@@ -76,12 +78,8 @@ publishing {
7678
}
7779
}
7880

79-
sonatypeCentralPublishExtension {
80-
groupId.set(project.group.toString())
81-
artifactId.set("keepassxc-proxy-access")
82-
version.set(project.version.toString())
83-
componentType.set("java")
84-
publishingType.set("USER_MANAGED")
81+
centralPortal {
82+
publishingType.set(PublishingType.USER_MANAGED)
8583

8684
username.set(sonatypeUsername)
8785
password.set(sonatypePassword)

0 commit comments

Comments
 (0)