Skip to content

Commit 3faa262

Browse files
Config changes
1 parent 4ae8d5c commit 3faa262

File tree

2 files changed

+78
-79
lines changed

2 files changed

+78
-79
lines changed

build.gradle

Lines changed: 78 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ apply(plugin: "signing");
3838
apply(plugin: "biz.aQute.bnd.builder");
3939
apply(plugin: "net.ltgt.errorprone");
4040
apply(plugin: 'org.owasp.dependencycheck');
41-
apply(plugin: 'maven-publish')
4241
apply(plugin: 'java-library')
4342
apply(from: "project.gradle");
4443

@@ -101,20 +100,93 @@ artifacts {
101100
archives javadocJar;
102101
}
103102

104-
signing {
105-
required { gradle.taskGraph.hasTask("publish") }
106-
sign publishing.publications.mavenJava
107-
}
108103

109104
wrapper {
110105
gradleVersion = "7.6.1";
111106
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip";
112107
}
113108

109+
java {
110+
withJavadocJar()
111+
withSourcesJar()
112+
}
113+
114114
publishing {
115115
publications {
116-
maven(MavenPublication) {
116+
mavenJava(MavenPublication) {
117+
artifactId = 'json-patch-path'
117118
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+
}
118185
}
119186
}
187+
}
188+
189+
signing {
190+
required { gradle.taskGraph.hasTask("publish") }
191+
sign publishing.publications.mavenJava
120192
}

project.gradle

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -53,77 +53,4 @@ javadoc.options {
5353
links("https://www.javadoc.io/doc/com.google.guava/guava/32.0.1-android/");
5454
links("https://java-json-tools.github.io/msg-simple/");
5555
links("https://java-json-tools.github.io/jackson-coreutils/");
56-
}
57-
58-
publishing {
59-
publications {
60-
mavenJava(MavenPublication) {
61-
pom {
62-
name = 'json-patch-path'
63-
description = 'JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7386) implementation in Java, using extended TMF620 JsonPath syntax'
64-
url = 'https://github.com/gravity9-tech/json-patch'
65-
66-
licenses {
67-
license {
68-
name = 'The Apache License, Version 2.0'
69-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
70-
}
71-
}
72-
developers {
73-
developer {
74-
id = 'Piotr-Dytkowski'
75-
name = 'Piotr Dytkowski'
76-
email = 'piotr.dytkowski@gravity9.com'
77-
organization = 'gravity9'
78-
organizationUrl = 'https://www.gravity9.com/'
79-
}
80-
developer {
81-
id = 'Bartlomiej-Styczynski'
82-
name = 'Bartlomiej Styczynski'
83-
email = 'bartlomiej.styczynski@gravity9.com'
84-
organization = 'gravity9'
85-
organizationUrl = 'https://www.gravity9.com/'
86-
}
87-
developer {
88-
id = 'Piotr-Bugara'
89-
name = 'Piotr Bugara'
90-
email = 'piotr.bugara@gravity9.com'
91-
organization = 'gravity9'
92-
organizationUrl = 'https://www.gravity9.com/'
93-
}
94-
developer {
95-
id = 'Garry-Newball'
96-
name = 'Garry Newball'
97-
email = 'garry.newball@gravity9.com'
98-
organization = 'gravity9'
99-
organizationUrl = 'https://www.gravity9.com/'
100-
}
101-
developer {
102-
id = 'Mateusz-Zaremba'
103-
name = 'Mateusz Zaremba'
104-
email = 'mateusz.zaremba@gravity9.com'
105-
organization = 'gravity9'
106-
organizationUrl = 'https://www.gravity9.com/'
107-
}
108-
}
109-
scm {
110-
connection = 'scm:git:https://github.com/java-json-tools/json-patch.git'
111-
developerConnection = 'scm:git:ssh://github.com:java-json-tools/json-patch.git'
112-
url = 'https://github.com/gravity9-tech/json-patch'
113-
}
114-
}
115-
}
116-
}
117-
repositories {
118-
maven {
119-
def releasesRepoUrl = layout.buildDirectory.dir("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
120-
def snapshotsRepoUrl = layout.buildDirectory.dir("https://s01.oss.sonatype.org/content/repositories/snapshots/")
121-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
122-
123-
credentials {
124-
username = ossrhUsername
125-
password = ossrhPassword
126-
}
127-
}
128-
}
12956
}

0 commit comments

Comments
 (0)