mirror of
https://github.com/sparrowwallet/hummingbird.git
synced 2024-12-26 01:56:45 +00:00
gradle publish to maven repo
This commit is contained in:
parent
2b89f2f8dc
commit
d56dae6980
3 changed files with 67 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,7 +2,7 @@
|
||||||
.gradle
|
.gradle
|
||||||
*iml
|
*iml
|
||||||
build
|
build
|
||||||
/*.properties
|
*.properties
|
||||||
out
|
out
|
||||||
*.log
|
*.log
|
||||||
build-*.sh
|
build-*.sh
|
||||||
|
|
66
build.gradle
66
build.gradle
|
@ -1,7 +1,20 @@
|
||||||
plugins {
|
buildscript {
|
||||||
id 'java-library'
|
repositories {
|
||||||
|
jcenter()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id 'java-library'
|
||||||
|
id 'io.codearte.nexus-staging' version '0.22.0'
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'com.bmuschko.nexus'
|
||||||
|
|
||||||
|
archivesBaseName = 'hummingbird'
|
||||||
group 'com.sparrowwallet'
|
group 'com.sparrowwallet'
|
||||||
version '1.1'
|
version '1.1'
|
||||||
|
|
||||||
|
@ -13,3 +26,52 @@ dependencies {
|
||||||
implementation('co.nstant.in:cbor:0.9')
|
implementation('co.nstant.in:cbor:0.9')
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
modifyPom {
|
||||||
|
project {
|
||||||
|
name 'hummingbird'
|
||||||
|
description 'Java implementation of Uniform Resources (UR)'
|
||||||
|
url 'https://github.com/sparrowwallet/hummingbird'
|
||||||
|
inceptionYear '2020'
|
||||||
|
|
||||||
|
scm {
|
||||||
|
url 'https://github.com/sparrowwallet/hummingbird'
|
||||||
|
connection 'scm:https://github.com/sparrowwallet/hummingbird.git'
|
||||||
|
developerConnection 'scm:git@github.com:sparrowwallet/hummingbird.git'
|
||||||
|
}
|
||||||
|
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name 'The Apache Software License, Version 2.0'
|
||||||
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||||
|
distribution 'repo'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id 'craigraw'
|
||||||
|
name 'Craig Raw'
|
||||||
|
email 'mail@sparrowwallet.com'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
extraArchive {
|
||||||
|
sources = true
|
||||||
|
tests = true
|
||||||
|
javadoc = true
|
||||||
|
}
|
||||||
|
|
||||||
|
nexus {
|
||||||
|
sign = true
|
||||||
|
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||||
|
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
|
||||||
|
}
|
||||||
|
|
||||||
|
nexusStaging {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* See https://www.albertgao.xyz/2018/01/18/how-to-publish-artifact-to-maven-central-via-gradle/ */
|
|
@ -23,8 +23,8 @@ import java.util.concurrent.atomic.AtomicLong;
|
||||||
* Individual instances are not thread-safe. Each thread must have its own
|
* Individual instances are not thread-safe. Each thread must have its own
|
||||||
* instance which is not shared.
|
* instance which is not shared.
|
||||||
*
|
*
|
||||||
* @author David Blackman and Sebastiano Vigna <vigna@acm.org> (original C code)
|
* @author David Blackman and Sebastiano Vigna (original C code)
|
||||||
* @author Una Thompson <una@unascribed.com> (Java port)
|
* @author Una Thompson (Java port)
|
||||||
* @see <a href="http://xoshiro.di.unimi.it/">http://xoshiro.di.unimi.it/</a>
|
* @see <a href="http://xoshiro.di.unimi.it/">http://xoshiro.di.unimi.it/</a>
|
||||||
*/
|
*/
|
||||||
public class RandomXoshiro256StarStar extends Random {
|
public class RandomXoshiro256StarStar extends Random {
|
||||||
|
|
Loading…
Reference in a new issue