Skip to content

Commit 97ef0c6

Browse files
committed
Use a working plugin
1 parent 28b5212 commit 97ef0c6

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/release_to_maven.yml

Lines changed: 1 addition & 1 deletion
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:
4747
SONATYPE_USERNAME: ${{ secrets.NEXUS_USERNAME }}
4848
SONATYPE_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

build.gradle.kts

Lines changed: 7 additions & 9 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,15 +78,11 @@ 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

86-
username.set(sonatypeUsername)
87-
password.set(sonatypePassword)
84+
centralPortal.username.set(sonatypeUsername)
85+
centralPortal.password.set(sonatypePassword)
8886

8987
// Configure POM metadata
9088
pom {

0 commit comments

Comments
 (0)