Skip to content

Commit 866e5ad

Browse files
committed
release 1.6.1-oak
1 parent b3e84e0 commit 866e5ad

File tree

3 files changed

+78
-193
lines changed

3 files changed

+78
-193
lines changed

build.gradle

+78-17
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,10 @@ buildscript {
1616
}
1717

1818
dependencies {
19-
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
2019
classpath("com.adarshr:gradle-test-logger-plugin:1.6.0")
2120
}
2221
}
2322

24-
plugins {
25-
id('jacoco')
26-
}
27-
2823
repositories {
2924
mavenLocal()
3025
gradlePluginPortal()
@@ -33,10 +28,14 @@ repositories {
3328
}
3429

3530
apply plugin: "java"
31+
apply plugin: 'jacoco'
32+
apply plugin: 'maven'
33+
apply plugin: 'signing'
3634
apply plugin: "com.adarshr.test-logger"
3735

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"
4039
description = """
4140
This project aims to provide the facility to easily implement JSON-RPC for the java programming language.
4241
"""
@@ -49,10 +48,6 @@ compileJava {
4948
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
5049
}
5150

52-
ext {
53-
releaseVersion = !version.toString().endsWith('-SNAPSHOT')
54-
}
55-
5651
test {
5752
testLogging {
5853
exceptionFormat = "FULL"
@@ -108,6 +103,7 @@ dependencies {
108103

109104
implementation 'commons-codec:commons-codec:1.10'
110105
implementation 'org.apache.httpcomponents:httpcore-nio:4.4.5'
106+
implementation 'javax.jws:javax.jws-api:1.1'
111107

112108
testImplementation 'junit:junit:4.12'
113109
testImplementation 'org.easymock:easymock:3.4'
@@ -126,19 +122,84 @@ dependencies {
126122

127123
}
128124

129-
130-
task documentationJar(type: Jar) {
131-
archiveClassifier.set("javadoc")
125+
task javadocJar(type: Jar) {
126+
classifier = 'javadoc'
132127
from javadoc
133128
}
134129

135130
task sourcesJar(type: Jar) {
136-
archiveClassifier.set("sources")
131+
classifier = 'sources'
137132
from sourceSets.main.allSource
138133
}
139134

140135
artifacts {
141-
archives documentationJar, sourcesJar
136+
archives javadocJar, sourcesJar
142137
}
143138

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+
}

pom.gradle

-47
This file was deleted.

publishing.gradle

-129
This file was deleted.

0 commit comments

Comments
 (0)