-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from nervosnetwork/rc/v0.23.1
[ᚬmaster] Rc/v0.23.1
- Loading branch information
Showing
12 changed files
with
245 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
buildscript { | ||
|
||
ext.bouncycastleVersion = '1.63' | ||
ext.bouncycastleVersion = '1.64' | ||
ext.rxjavaVersion = '2.2.13' | ||
ext.gsonVersion = '2.8.6' | ||
ext.okhttpVersion = '4.2.2' | ||
|
@@ -10,7 +10,13 @@ buildscript { | |
|
||
ext.junitVersion = '5.5.2' | ||
|
||
repositories { | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.1' | ||
classpath 'com.github.jengelman.gradle.plugins:shadow:5.1.0' | ||
} | ||
} | ||
|
@@ -19,12 +25,14 @@ plugins { | |
id 'com.github.johnrengelman.shadow' version '5.1.0' | ||
id 'java' | ||
id 'com.github.sherter.google-java-format' version '0.8' | ||
id 'com.jfrog.bintray' version '1.8.4' | ||
} | ||
|
||
apply plugin: 'com.github.johnrengelman.shadow' | ||
apply plugin: 'application' | ||
apply plugin: 'io.codearte.nexus-staging' | ||
|
||
mainClassName = 'org.nervos.ckb.RpcClient' | ||
mainClassName = 'org.nervos.ckb.example.RpcExample' | ||
applicationName = 'ckb-sdk-java' | ||
|
||
description 'ckb-sdk-java base project' | ||
|
@@ -35,7 +43,7 @@ allprojects { | |
targetCompatibility = 1.8 | ||
|
||
group 'org.nervos.ckb' | ||
version '0.23.0' | ||
version '0.23.1' | ||
|
||
apply plugin: 'java' | ||
|
||
|
@@ -68,3 +76,102 @@ subprojects { | |
build.dependsOn installGitHooks | ||
} | ||
|
||
configure(subprojects.findAll { it.name != 'tests' }) { | ||
// Required for Maven Nexus repository | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
// Required for JFrog Artifactory repository | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
task testJar(type: Jar) { | ||
classifier = 'tests' | ||
from sourceSets.test.output | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar, javadocJar, testJar | ||
} | ||
|
||
ext { | ||
ossrhUsername = project.hasProperty('ossrhUsername') ? project.property('ossrhUsername') : '' | ||
ossrhPassword = project.hasProperty('ossrhPassword') ? project.property('ossrhPassword') : '' | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId 'org.nervos.ckb' | ||
version '0.23.1' | ||
from components.java | ||
} | ||
} | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') { | ||
authentication( | ||
userName: ossrhUsername, | ||
password: ossrhPassword | ||
) | ||
} | ||
|
||
pom.project { | ||
name 'ckb-sdk-java' | ||
packaging 'jar' | ||
description project.description | ||
url 'https://github.com/nervosnetwork/ckb-sdk-java.git' | ||
|
||
scm { | ||
connection 'scm:[email protected]:nervosnetwork/ckb-sdk-java.git' | ||
url 'https://github.com/nervosnetwork/ckb-sdk-java.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The MIT License' | ||
url 'https://opensource.org/licenses/MIT' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'nervos' | ||
name 'nervos developer' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
required { gradle.taskGraph.hasTask('uploadArchives') } // only execute as part of this task | ||
sign configurations.archives | ||
} | ||
|
||
task release { | ||
dependsOn 'build' | ||
dependsOn 'uploadArchives' | ||
dependsOn 'bintrayUpload' | ||
|
||
tasks.findByName('uploadArchives').mustRunAfter 'build' | ||
tasks.findByName('bintrayUpload').mustRunAfter 'build' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.