Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Commit 9ee3400

Browse files
committed
Publish via the Central Publisher Portal
1 parent 1a905ef commit 9ee3400

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-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 -x test
4343

4444
- name: Publish package
45-
run: ./gradlew publishToSonatype closeSonatypeStagingRepository
45+
run: ./gradlew publishToCentralPortal
4646
env:
4747
SONATYPE_USERNAME: ${{ secrets.NEXUS_USERNAME }}
4848
SONATYPE_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

build.gradle.kts

Lines changed: 36 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("io.github.gradle-nexus.publish-plugin") version "2.0.0"
5+
id("net.thebugmc.gradle.sonatype-central-portal-publisher") version "1.2.4"
46
id("maven-publish")
57
id("signing")
68
}
@@ -46,7 +48,7 @@ publishing {
4648
from(components["java"])
4749

4850
pom {
49-
name.set("keepassxc-proxy-access")
51+
name.set("kdewallet")
5052
description.set("A Java library for storing secrets on linux in a KDE wallet over D-Bus, implements kwallet.")
5153
url.set("https://github.com/purejava/kdewallet")
5254

@@ -80,13 +82,38 @@ publishing {
8082
}
8183
}
8284

83-
nexusPublishing {
84-
repositories {
85-
sonatype {
86-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
87-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
88-
username.set(sonatypeUsername)
89-
password.set(sonatypePassword)
85+
centralPortal {
86+
publishingType.set(USER_MANAGED)
87+
88+
username.set(sonatypeUsername)
89+
password.set(sonatypePassword)
90+
91+
// Configure POM metadata
92+
pom {
93+
name.set("kdewallet")
94+
description.set("A Java library for storing secrets on linux in a KDE wallet over D-Bus, implements kwallet.")
95+
url.set("https://github.com/purejava/kdewallet")
96+
licenses {
97+
license {
98+
name.set("MIT License")
99+
url.set("https://opensource.org/licenses/MIT")
100+
}
101+
}
102+
developers {
103+
developer {
104+
id.set("purejava")
105+
name.set("Ralph Plawetzki")
106+
email.set("ralph@purejava.org")
107+
}
108+
}
109+
scm {
110+
connection.set("scm:git:git://github.com/purejava/kdewallet.git")
111+
developerConnection.set("scm:git:ssh://github.com/purejava/kdewallet.git")
112+
url.set("https://github.com/purejava/kdewallet/tree/main")
113+
}
114+
issueManagement {
115+
system.set("GitHub Issues")
116+
url.set("https://github.com/kdewallet/issues")
90117
}
91118
}
92119
}

0 commit comments

Comments
 (0)