2020-04-01 10:35:47 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url "https://plugins.gradle.org/m2/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath "org.javamodularity:moduleplugin:1.6.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-15 18:15:28 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
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-04-01 10:35:47 +00:00
|
|
|
def javamodularityPluginId = 'org.javamodularity.moduleplugin'
|
|
|
|
final hasPlugin = project.getPlugins().hasPlugin(javamodularityPluginId);
|
|
|
|
if(hasPlugin) {
|
|
|
|
final Plugin plugin = project.getPlugins().getPlugin(javamodularityPluginId)
|
|
|
|
println 'Plugin already applied - version ' + plugin.properties['javamodularityPluginId']
|
|
|
|
} else {
|
|
|
|
apply plugin: "org.javamodularity.moduleplugin"
|
|
|
|
}
|
|
|
|
|
2020-04-01 11:20:36 +00:00
|
|
|
group 'com.sparrowwallet'
|
2019-03-15 18:15:28 +00:00
|
|
|
version '0.1'
|
|
|
|
|
2020-03-31 13:43:34 +00:00
|
|
|
sourceCompatibility = 1.9
|
|
|
|
targetCompatibility = 1.9
|
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'
|
|
|
|
}
|
|
|
|
implementation ('ch.qos.logback:logback-classic:1.2.3') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
task(runDrongo, dependsOn: 'classes', type: JavaExec) {
|
2020-04-01 11:20:36 +00:00
|
|
|
main = '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-04-02 10:53:52 +00:00
|
|
|
archiveBaseName = 'drongo'
|
|
|
|
archiveVersion = '0.1'
|
2019-03-15 18:15:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
2020-04-02 10:53:52 +00:00
|
|
|
archiveVersion = '0.1'
|
2019-03-15 18:15:28 +00:00
|
|
|
classifier = 'all'
|
|
|
|
}
|