2017-12-07 14:48:31 +00:00
|
|
|
apply plugin: 'us.kirchmeier.capsule'
|
2018-06-08 13:02:57 +00:00
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2017-12-07 14:48:31 +00:00
|
|
|
|
|
|
|
description 'Network bootstrapper'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
runtimeArtifacts
|
|
|
|
}
|
|
|
|
|
2017-12-23 11:22:31 +00:00
|
|
|
dependencies {
|
|
|
|
compile "org.slf4j:slf4j-nop:$slf4j_version"
|
|
|
|
}
|
|
|
|
|
2017-12-07 14:48:31 +00:00
|
|
|
task buildBootstrapperJar(type: FatCapsule, dependsOn: project(':node-api').compileJava) {
|
|
|
|
applicationClass 'net.corda.nodeapi.internal.network.NetworkBootstrapper'
|
2018-06-08 13:02:57 +00:00
|
|
|
archiveName = "network-bootstrapper-${version}.jar"
|
2017-12-07 14:48:31 +00:00
|
|
|
capsuleManifest {
|
|
|
|
applicationVersion = corda_release_version
|
|
|
|
systemProperties['visualvm.display.name'] = 'Network Bootstrapper'
|
|
|
|
minJavaVersion = '1.8.0'
|
|
|
|
jvmArgs = ['-XX:+UseG1GC']
|
|
|
|
}
|
2017-12-23 11:22:31 +00:00
|
|
|
from(project(':node:capsule').tasks['buildCordaJAR']) {
|
|
|
|
rename 'corda-(.*)', 'corda.jar'
|
|
|
|
}
|
2017-12-07 14:48:31 +00:00
|
|
|
applicationSource = files(
|
|
|
|
project(':node-api').configurations.runtime,
|
|
|
|
project(':node-api').jar
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
runtimeArtifacts buildBootstrapperJar
|
2018-06-08 13:02:57 +00:00
|
|
|
publish buildBootstrapperJar {
|
|
|
|
classifier ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
name 'tools-network-bootstrapper'
|
|
|
|
disableDefaultJar = true
|
2017-12-07 14:48:31 +00:00
|
|
|
}
|