@@ -16,15 +16,10 @@ buildscript {
16
16
}
17
17
18
18
dependencies {
19
- classpath " io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
20
19
classpath(" com.adarshr:gradle-test-logger-plugin:1.6.0" )
21
20
}
22
21
}
23
22
24
- plugins {
25
- id(' jacoco' )
26
- }
27
-
28
23
repositories {
29
24
mavenLocal()
30
25
gradlePluginPortal()
@@ -33,10 +28,14 @@ repositories {
33
28
}
34
29
35
30
apply plugin : " java"
31
+ apply plugin : ' jacoco'
32
+ apply plugin : ' maven'
33
+ apply plugin : ' signing'
36
34
apply plugin : " com.adarshr.test-logger"
37
35
38
- group = " com.github.briandilley.jsonrpc4j"
39
- version = " 1.6.1-SNAPSHOT"
36
+ group = " io.github.oak"
37
+ archivesBaseName = " jsonrpc4j"
38
+ version = " 1.6.1-oak"
40
39
description = """
41
40
This project aims to provide the facility to easily implement JSON-RPC for the java programming language.
42
41
"""
@@ -49,10 +48,6 @@ compileJava {
49
48
options. compilerArgs << " -Xlint:unchecked" << " -Xlint:deprecation"
50
49
}
51
50
52
- ext {
53
- releaseVersion = ! version. toString(). endsWith(' -SNAPSHOT' )
54
- }
55
-
56
51
test {
57
52
testLogging {
58
53
exceptionFormat = " FULL"
@@ -108,6 +103,7 @@ dependencies {
108
103
109
104
implementation ' commons-codec:commons-codec:1.10'
110
105
implementation ' org.apache.httpcomponents:httpcore-nio:4.4.5'
106
+ implementation ' javax.jws:javax.jws-api:1.1'
111
107
112
108
testImplementation ' junit:junit:4.12'
113
109
testImplementation ' org.easymock:easymock:3.4'
@@ -126,19 +122,84 @@ dependencies {
126
122
127
123
}
128
124
129
-
130
- task documentationJar (type : Jar ) {
131
- archiveClassifier. set(" javadoc" )
125
+ task javadocJar (type : Jar ) {
126
+ classifier = ' javadoc'
132
127
from javadoc
133
128
}
134
129
135
130
task sourcesJar (type : Jar ) {
136
- archiveClassifier . set( " sources" )
131
+ classifier = ' sources'
137
132
from sourceSets. main. allSource
138
133
}
139
134
140
135
artifacts {
141
- archives documentationJar , sourcesJar
136
+ archives javadocJar , sourcesJar
142
137
}
143
138
144
- apply from : ' publishing.gradle'
139
+
140
+ signing {
141
+ sign configurations. archives
142
+ }
143
+
144
+ uploadArchives {
145
+ repositories {
146
+ mavenDeployer {
147
+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
148
+
149
+ repository(url : " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
150
+ authentication(userName : ossrhUsername, password : ossrhPassword)
151
+ }
152
+
153
+ snapshotRepository(url : " https://s01.oss.sonatype.org/content/repositories/snapshots/" ) {
154
+ authentication(userName : ossrhUsername, password : ossrhPassword)
155
+ }
156
+
157
+ pom. project {
158
+ name = rootProject. name. capitalize() + (project. parent ? " ($shortName )" : ' ' )
159
+ description = project. description
160
+ url = ' https://github.com/oak/jsonrpc4j'
161
+ issueManagement {
162
+ system = ' GitHub'
163
+ url = ' https://github.com/oak/jsonrpc4j/issues'
164
+ }
165
+ ciManagement {
166
+ system = ' Github Actions'
167
+ url = ' https://github.com/oak/jsonrpc4j/actions'
168
+ }
169
+ inceptionYear = ' 2013'
170
+ developers {
171
+ developer {
172
+ id = ' briandilley'
173
+ name = ' Brian Dilley'
174
+
175
+ url = ' https://github.com/briandilley'
176
+ timezone = ' America/Los_Angeles'
177
+ }
178
+ developer {
179
+ id = ' oak'
180
+ name = ' Alexandre Carvalho'
181
+
182
+ url = ' https://github.com/oak'
183
+ timezone = ' America/Sao_Paulo'
184
+ }
185
+ }
186
+ licenses {
187
+ license {
188
+ name = ' The MIT License (MIT)'
189
+ url = ' https://github.com/oak/jsonrpc4j/blob/master/LICENSE'
190
+ distribution = ' repo'
191
+ comments = ' A business-friendly OSS license'
192
+ }
193
+ }
194
+ scm {
195
+ connection = ' scm:git:https://github.com/oak/jsonrpc4j.git'
196
+ developerConnection
= ' [email protected] :oak/jsonrpc4j.git'
197
+ url = ' https://github.com/oak/jsonrpc4j'
198
+ }
199
+ distributionManagement {
200
+ downloadUrl = ' https://github.com/oak/jsonrpc4j/releases'
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }
0 commit comments