|
1 | 1 | plugins {
|
2 | 2 | id("java-library")
|
3 |
| - id("io.github.gradle-nexus.publish-plugin") version "2.0.0" |
| 3 | + id("eu.kakde.gradle.sonatype-maven-central-publisher") version "1.0.6" |
4 | 4 | id("maven-publish")
|
5 | 5 | id("signing")
|
6 | 6 | }
|
@@ -75,13 +75,42 @@ publishing {
|
75 | 75 | }
|
76 | 76 | }
|
77 | 77 |
|
78 |
| -nexusPublishing { |
79 |
| - repositories { |
80 |
| - sonatype { |
81 |
| - nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) |
82 |
| - snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) |
83 |
| - username.set(sonatypeUsername) |
84 |
| - password.set(sonatypePassword) |
| 78 | +sonatypeCentralPublishExtension { |
| 79 | + groupId.set(project.group.toString()) |
| 80 | + artifactId.set("keepassxc-proxy-access") |
| 81 | + version.set(project.version.toString()) |
| 82 | + componentType.set("java") |
| 83 | + publishingType.set("USER_MANAGED") |
| 84 | + |
| 85 | + username.set(sonatypeUsername) |
| 86 | + password.set(sonatypePassword) |
| 87 | + |
| 88 | + // Configure POM metadata |
| 89 | + pom { |
| 90 | + name.set("keepassxc-proxy-access") |
| 91 | + description.set("A Java library to access KeePassXC via its build-in proxy.") |
| 92 | + url.set("https://github.com/purejava/keepassxc-proxy-access") |
| 93 | + licenses { |
| 94 | + license { |
| 95 | + name.set("MIT License") |
| 96 | + url.set("https://opensource.org/licenses/MIT") |
| 97 | + } |
| 98 | + } |
| 99 | + developers { |
| 100 | + developer { |
| 101 | + id.set("purejava") |
| 102 | + name.set("Ralph Plawetzki") |
| 103 | + |
| 104 | + } |
| 105 | + } |
| 106 | + scm { |
| 107 | + connection.set("scm:git:git://github.com/purejava/keepassxc-proxy-access.git") |
| 108 | + developerConnection.set("scm:git:ssh://github.com/purejava/keepassxc-proxy-access.git") |
| 109 | + url.set("https://github.com/purejava/keepassxc-proxy-access/tree/main") |
| 110 | + } |
| 111 | + issueManagement { |
| 112 | + system.set("GitHub Issues") |
| 113 | + url.set("https://github.com/purejava/keepassxc-proxy-access/issues") |
85 | 114 | }
|
86 | 115 | }
|
87 | 116 | }
|
|
0 commit comments