|
| 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 | } |
@@ -73,13 +75,38 @@ publishing { |
73 | 75 | } |
74 | 76 | } |
75 | 77 |
|
76 | | -nexusPublishing { |
77 | | - repositories { |
78 | | - sonatype { |
79 | | - nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) |
80 | | - snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) |
81 | | - username.set(sonatypeUsername) |
82 | | - password.set(sonatypePassword) |
| 78 | +centralPortal { |
| 79 | + publishingType.set(USER_MANAGED) |
| 80 | + |
| 81 | + username.set(sonatypeUsername) |
| 82 | + password.set(sonatypePassword) |
| 83 | + |
| 84 | + // Configure POM metadata |
| 85 | + pom { |
| 86 | + name.set("libappindicator-gtk3-java-full") |
| 87 | + description.set("Java bindings for libappindicator-gtk3 in 100% pure Java") |
| 88 | + url.set("https://github.com/purejava/appindicator-gtk3-java") |
| 89 | + licenses { |
| 90 | + license { |
| 91 | + name.set("MIT License") |
| 92 | + url.set("https://opensource.org/licenses/MIT") |
| 93 | + } |
| 94 | + } |
| 95 | + developers { |
| 96 | + developer { |
| 97 | + id.set("purejava") |
| 98 | + name.set("Ralph Plawetzki") |
| 99 | + email.set("ralph@purejava.org") |
| 100 | + } |
| 101 | + } |
| 102 | + scm { |
| 103 | + connection.set("scm:git:git://github.com/purejava/appindicator-gtk3-java.git") |
| 104 | + developerConnection.set("scm:git:ssh://github.com/purejava/appindicator-gtk3-java.git") |
| 105 | + url.set("https://github.com/purejava/appindicator-gtk3-java/tree/develop") |
| 106 | + } |
| 107 | + issueManagement { |
| 108 | + system.set("GitHub Issues") |
| 109 | + url.set("https://github.com/purejava/appindicator-gtk3-java/issues") |
83 | 110 | } |
84 | 111 | } |
85 | 112 | } |
|
0 commit comments