@@ -38,7 +38,6 @@ apply(plugin: "signing");
38
38
apply(plugin : " biz.aQute.bnd.builder" );
39
39
apply(plugin : " net.ltgt.errorprone" );
40
40
apply(plugin : ' org.owasp.dependencycheck' );
41
- apply(plugin : ' maven-publish' )
42
41
apply(plugin : ' java-library' )
43
42
apply(from : " project.gradle" );
44
43
@@ -101,20 +100,93 @@ artifacts {
101
100
archives javadocJar;
102
101
}
103
102
104
- signing {
105
- required { gradle. taskGraph. hasTask(" publish" ) }
106
- sign publishing. publications. mavenJava
107
- }
108
103
109
104
wrapper {
110
105
gradleVersion = " 7.6.1" ;
111
106
distributionUrl = " https://services.gradle.org/distributions/gradle-${ gradleVersion} -all.zip" ;
112
107
}
113
108
109
+ java {
110
+ withJavadocJar()
111
+ withSourcesJar()
112
+ }
113
+
114
114
publishing {
115
115
publications {
116
- maven(MavenPublication ) {
116
+ mavenJava(MavenPublication ) {
117
+ artifactId = ' json-patch-path'
117
118
from components. java
119
+ pom {
120
+ name = ' json-patch-path'
121
+ description = ' JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7386) implementation in Java, using extended TMF620 JsonPath syntax'
122
+ url = ' https://github.com/gravity9-tech/json-patch'
123
+
124
+ licenses {
125
+ license {
126
+ name = ' The Apache License, Version 2.0'
127
+ url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
128
+ }
129
+ }
130
+ developers {
131
+ developer {
132
+ id = ' Piotr-Dytkowski'
133
+ name = ' Piotr Dytkowski'
134
+ email = ' piotr.dytkowski@gravity9.com'
135
+ organization = ' gravity9'
136
+ organizationUrl = ' https://www.gravity9.com/'
137
+ }
138
+ developer {
139
+ id = ' Bartlomiej-Styczynski'
140
+ name = ' Bartlomiej Styczynski'
141
+ email = ' bartlomiej.styczynski@gravity9.com'
142
+ organization = ' gravity9'
143
+ organizationUrl = ' https://www.gravity9.com/'
144
+ }
145
+ developer {
146
+ id = ' Piotr-Bugara'
147
+ name = ' Piotr Bugara'
148
+ email = ' piotr.bugara@gravity9.com'
149
+ organization = ' gravity9'
150
+ organizationUrl = ' https://www.gravity9.com/'
151
+ }
152
+ developer {
153
+ id = ' Garry-Newball'
154
+ name = ' Garry Newball'
155
+ email = ' garry.newball@gravity9.com'
156
+ organization = ' gravity9'
157
+ organizationUrl = ' https://www.gravity9.com/'
158
+ }
159
+ developer {
160
+ id = ' Mateusz-Zaremba'
161
+ name = ' Mateusz Zaremba'
162
+ email = ' mateusz.zaremba@gravity9.com'
163
+ organization = ' gravity9'
164
+ organizationUrl = ' https://www.gravity9.com/'
165
+ }
166
+ }
167
+ scm {
168
+ connection = ' scm:git:https://github.com/java-json-tools/json-patch.git'
169
+ developerConnection = ' scm:git:ssh://github.com:java-json-tools/json-patch.git'
170
+ url = ' https://github.com/gravity9-tech/json-patch'
171
+ }
172
+ }
173
+ }
174
+ }
175
+ repositories {
176
+ maven {
177
+ def releasesRepoUrl = " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
178
+ def snapshotsRepoUrl = " https://s01.oss.sonatype.org/content/repositories/snapshots/"
179
+ url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
180
+
181
+ credentials {
182
+ username = ossrhUsername
183
+ password = ossrhPassword
184
+ }
118
185
}
119
186
}
187
+ }
188
+
189
+ signing {
190
+ required { gradle. taskGraph. hasTask(" publish" ) }
191
+ sign publishing. publications. mavenJava
120
192
}
0 commit comments