1818
1919apply plugin : ' maven-publish'
2020apply plugin : ' signing'
21- apply plugin : ' io.github.gradle-nexus .publish-plugin '
21+ apply plugin : ' com.vanniktech.maven .publish'
2222
23- publishing {
24- publications {
25- mavenJava(MavenPublication ) {
26- pom {
27- groupId = ' org.jspecify'
28- artifactId = ' jspecify'
29- name = ' JSpecify annotations'
30- description = ' An artifact of well-named and well-specified annotations to power static analysis checks'
31- url = ' https://jspecify.dev/'
32- from components. java
33- licenses {
34- license {
35- name = ' The Apache License, Version 2.0'
36- url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
37- }
38- }
39- scm {
40- connection
= ' scm:git:[email protected] :jspecify/jspecify.git' 41- developerConnection
= ' scm:git:[email protected] :jspecify/jspecify.git' 42- url = ' https://github.com/jspecify/jspecify/'
43- }
44- developers {
45- // These are here only because Sonatype requires us to list someone.
46- // Any project member is welcome to add themselves if they want to.
47- developer {
48- id = ' kevinb9n'
49- name = ' Kevin Bourrillion'
50- 51- }
52- developer {
53- id = ' netdpb'
54- name = ' David P. Baker'
55- 56- organization = ' Google'
57- timezone = ' America/New_York'
58- }
59- developer {
60- id = ' cpovirk'
61- name = ' Chris Povirk'
62- 63- organization = ' Google'
64- timezone = ' America/New_York'
65- }
66- }
23+ mavenPublishing {
24+ publishToMavenCentral()
25+ signAllPublications()
26+
27+ pom {
28+ name = ' JSpecify annotations'
29+ description = ' An artifact of well-named and well-specified annotations to power static analysis checks'
30+ url = ' https://jspecify.dev/'
31+ licenses {
32+ license {
33+ name = ' The Apache License, Version 2.0'
34+ url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
6735 }
6836 }
69- }
70- }
71-
72- nexusPublishing {
73- repositories {
74- // see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
75- sonatype {
76- nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
77- snapshotRepositoryUrl. set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
37+ scm {
38+ connection
= ' scm:git:[email protected] :jspecify/jspecify.git' 39+ developerConnection
= ' scm:git:[email protected] :jspecify/jspecify.git' 40+ url = ' https://github.com/jspecify/jspecify/'
41+ }
42+ developers {
43+ // These are here only because Sonatype requires us to list someone.
44+ // Any project member is welcome to add themselves if they want to.
45+ developer {
46+ id = ' kevinb9n'
47+ name = ' Kevin Bourrillion'
48+ 49+ }
50+ developer {
51+ id = ' netdpb'
52+ name = ' David P. Baker'
53+ 54+ organization = ' Google'
55+ timezone = ' America/New_York'
56+ }
57+ developer {
58+ id = ' cpovirk'
59+ name = ' Chris Povirk'
60+ 61+ organization = ' Google'
62+ timezone = ' America/New_York'
63+ }
7864 }
7965 }
8066}
@@ -84,7 +70,6 @@ def pgpPassword = findProperty('pgpPassword')
8470
8571signing {
8672 useInMemoryPgpKeys(privateKey, pgpPassword)
87- sign publishing. publications. mavenJava
8873}
8974
9075tasks. withType(Sign ). configureEach {
0 commit comments