2020-04-01 10:35:47 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url "https://plugins.gradle.org/m2/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-15 18:15:28 +00:00
|
|
|
plugins {
|
2021-06-25 12:55:48 +00:00
|
|
|
id 'java-library'
|
|
|
|
id 'extra-java-module-info'
|
2020-04-02 10:53:52 +00:00
|
|
|
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
2019-03-15 18:15:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-25 07:14:33 +00:00
|
|
|
tasks.withType(AbstractArchiveTask) {
|
|
|
|
preserveFileTimestamps = false
|
|
|
|
reproducibleFileOrder = true
|
|
|
|
}
|
|
|
|
|
2020-04-01 11:20:36 +00:00
|
|
|
group 'com.sparrowwallet'
|
2021-07-02 11:40:23 +00:00
|
|
|
version '1.0'
|
|
|
|
|
|
|
|
def os = org.gradle.internal.os.OperatingSystem.current()
|
|
|
|
def osName = os.getFamilyName()
|
|
|
|
if(os.macOsX) {
|
|
|
|
osName = "osx"
|
|
|
|
}
|
2019-03-15 18:15:28 +00:00
|
|
|
|
2022-01-09 09:05:17 +00:00
|
|
|
sourceCompatibility = 16
|
|
|
|
targetCompatibility = 16
|
2019-03-15 18:15:28 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-03-31 13:43:34 +00:00
|
|
|
implementation ('org.zeromq:jeromq:0.5.0') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
|
|
|
implementation ('com.googlecode.json-simple:json-simple:1.1.1') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
exclude group: 'junit', module: 'junit'
|
|
|
|
}
|
2020-04-01 10:35:47 +00:00
|
|
|
implementation ('org.bouncycastle:bcprov-jdk15on:1.64') {
|
2020-03-31 13:43:34 +00:00
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
2020-05-17 11:38:20 +00:00
|
|
|
implementation ('de.mkammerer:argon2-jvm:2.7') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
exclude group: 'junit', module: 'junit'
|
|
|
|
}
|
2021-12-16 06:28:01 +00:00
|
|
|
implementation ('ch.qos.logback:logback-classic:1.2.8') {
|
2020-03-31 13:43:34 +00:00
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
2021-06-10 10:07:20 +00:00
|
|
|
exclude group: 'org.slf4j'
|
2020-03-31 13:43:34 +00:00
|
|
|
}
|
2021-06-10 10:07:20 +00:00
|
|
|
implementation ('org.slf4j:slf4j-api:1.7.30')
|
2020-03-31 13:43:34 +00:00
|
|
|
testImplementation ('junit:junit:4.12') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
|
|
|
testImplementation group: 'org.hamcrest', name: 'hamcrest-core', version: '2.2'
|
2019-03-15 18:15:28 +00:00
|
|
|
}
|
|
|
|
|
2021-07-02 11:40:23 +00:00
|
|
|
processResources {
|
|
|
|
doLast {
|
|
|
|
delete fileTree("$buildDir/resources/main/native").matching {
|
|
|
|
exclude "${osName}/**"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-15 18:15:28 +00:00
|
|
|
task(runDrongo, dependsOn: 'classes', type: JavaExec) {
|
2021-06-25 12:55:48 +00:00
|
|
|
mainClass = 'com.sparrowwallet.drongo.Main'
|
2019-03-15 18:15:28 +00:00
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
args 'drongo.properties'
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
2020-04-01 11:20:36 +00:00
|
|
|
attributes "Main-Class": "com.sparrowwallet.drongo.Main"
|
2019-03-15 18:15:28 +00:00
|
|
|
}
|
|
|
|
|
2020-05-30 09:22:17 +00:00
|
|
|
exclude('logback.xml')
|
|
|
|
|
2020-04-02 10:53:52 +00:00
|
|
|
archiveBaseName = 'drongo'
|
2020-08-21 15:15:12 +00:00
|
|
|
archiveVersion = '0.9'
|
2019-03-15 18:15:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
2020-08-21 15:15:12 +00:00
|
|
|
archiveVersion = '0.9'
|
2019-03-15 18:15:28 +00:00
|
|
|
classifier = 'all'
|
|
|
|
}
|
2021-06-25 12:55:48 +00:00
|
|
|
|
|
|
|
extraJavaModuleInfo {
|
2021-12-16 06:28:01 +00:00
|
|
|
module('logback-core-1.2.8.jar', 'logback.core', '1.2.8') {
|
2021-06-25 12:55:48 +00:00
|
|
|
exports('ch.qos.logback.core')
|
|
|
|
exports('ch.qos.logback.core.spi')
|
|
|
|
requires('java.xml')
|
|
|
|
}
|
2021-12-16 06:28:01 +00:00
|
|
|
module('logback-classic-1.2.8.jar', 'logback.classic', '1.2.8') {
|
2021-06-25 12:55:48 +00:00
|
|
|
exports('ch.qos.logback.classic')
|
|
|
|
exports('ch.qos.logback.classic.spi')
|
|
|
|
requires('org.slf4j')
|
|
|
|
requires('logback.core')
|
|
|
|
requires('java.xml')
|
|
|
|
requires('java.logging')
|
|
|
|
}
|
|
|
|
module('jeromq-0.5.0.jar', 'jeromq', '0.5.0') {
|
|
|
|
exports('org.zeromq')
|
|
|
|
}
|
|
|
|
module('json-simple-1.1.1.jar', 'json.simple', '1.1.1') {
|
|
|
|
exports('org.json.simple')
|
|
|
|
exports('org.json.simple.parser')
|
|
|
|
}
|
|
|
|
module('jnacl-1.0.0.jar', 'eu.neilalexander.jnacl', '1.0.0')
|
|
|
|
module('junit-4.12.jar', 'junit', '4.12') {
|
|
|
|
exports('org.junit')
|
|
|
|
}
|
|
|
|
}
|