diff --git a/.gitignore b/.gitignore index 3dcdd50..5052f82 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ .gradle *iml build -/*.properties +*.properties out *.log build-*.sh diff --git a/build.gradle b/build.gradle index cdc57c5..a4b7f41 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,20 @@ -plugins { - id 'java-library' +buildscript { + 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' version '1.1' @@ -13,3 +26,52 @@ dependencies { implementation('co.nstant.in:cbor:0.9') 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/ */ \ No newline at end of file diff --git a/src/main/java/com/sparrowwallet/hummingbird/fountain/RandomXoshiro256StarStar.java b/src/main/java/com/sparrowwallet/hummingbird/fountain/RandomXoshiro256StarStar.java index ed680e2..f02c04c 100644 --- a/src/main/java/com/sparrowwallet/hummingbird/fountain/RandomXoshiro256StarStar.java +++ b/src/main/java/com/sparrowwallet/hummingbird/fountain/RandomXoshiro256StarStar.java @@ -23,8 +23,8 @@ import java.util.concurrent.atomic.AtomicLong; * Individual instances are not thread-safe. Each thread must have its own * instance which is not shared. * - * @author David Blackman and Sebastiano Vigna <vigna@acm.org> (original C code) - * @author Una Thompson <una@unascribed.com> (Java port) + * @author David Blackman and Sebastiano Vigna (original C code) + * @author Una Thompson (Java port) * @see http://xoshiro.di.unimi.it/ */ public class RandomXoshiro256StarStar extends Random {