|
| 1 | +import net.thebugmc.gradle.sonatypepublisher.PublishingType.* |
| 2 | + |
1 | 3 | plugins { |
2 | 4 | 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" |
4 | 6 | id("maven-publish") |
5 | 7 | id("signing") |
6 | 8 | } |
@@ -46,7 +48,7 @@ publishing { |
46 | 48 | from(components["java"]) |
47 | 49 |
|
48 | 50 | pom { |
49 | | - name.set("keepassxc-proxy-access") |
| 51 | + name.set("kdewallet") |
50 | 52 | description.set("A Java library for storing secrets on linux in a KDE wallet over D-Bus, implements kwallet.") |
51 | 53 | url.set("https://github.com/purejava/kdewallet") |
52 | 54 |
|
@@ -80,13 +82,38 @@ publishing { |
80 | 82 | } |
81 | 83 | } |
82 | 84 |
|
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") |
90 | 117 | } |
91 | 118 | } |
92 | 119 | } |
|
0 commit comments