corda/tools/demobench/build.gradle

109 lines
3.0 KiB
Groovy
Raw Normal View History

2017-01-18 14:02:23 +00:00
buildscript {
ext.kotlin_version = '1.0.6'
ext.tornadofx_version = '1.6.0'
ext.jna_version = '4.1.0'
ext.purejavacomm_version = '0.0.17'
ext.guava_version = '14.0.1'
ext.slf4j_version = '1.7.22'
ext.logback_version = '1.1.3'
2017-01-18 14:02:23 +00:00
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
2017-01-18 14:02:23 +00:00
2017-02-04 16:23:51 +00:00
evaluationDependsOn(':tools:explorer:capsule')
2017-01-18 14:02:23 +00:00
sourceCompatibility = 1.8
mainClassName = 'net.corda.demobench.DemoBench'
applicationDefaultJvmArgs = ['-Djava.util.logging.config.class=net.corda.demobench.config.LoggingConfig']
2017-01-18 14:02:23 +00:00
repositories {
flatDir {
dirs 'libs'
}
mavenLocal()
2017-01-18 14:02:23 +00:00
mavenCentral()
jcenter()
maven {
url 'http://www.sparetimelabs.com/maven2'
}
maven {
url 'https://dl.bintray.com/kotlin/exposed'
}
2017-01-18 14:02:23 +00:00
}
dependencies {
// TornadoFX: A lightweight Kotlin framework for working with JavaFX UI's.
compile "no.tornado:tornadofx:$tornadofx_version"
2017-01-18 14:02:23 +00:00
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// ONLY USING THE RPC CLIENT!?
compile project(':node')
2017-01-30 13:57:43 +00:00
compile "com.h2database:h2:$h2_version"
compile "net.java.dev.jna:jna:$jna_version"
compile "net.java.dev.jna:jna-platform:$jna_version"
compile "com.google.guava:guava:$guava_version"
compile "com.sparetimelabs:purejavacomm:$purejavacomm_version"
2017-02-04 22:36:42 +00:00
compile "org.apache.logging.log4j:log4j-to-slf4j:$log4j_version"
compile "org.slf4j:log4j-over-slf4j:$slf4j_version"
compile "org.slf4j:jcl-over-slf4j:$slf4j_version"
compile "org.slf4j:jul-to-slf4j:$slf4j_version"
compile "ch.qos.logback:logback-classic:$logback_version"
2017-01-30 13:57:43 +00:00
compile "com.typesafe:config:$typesafe_config_version"
compile ':jediterm-terminal-2.5'
compile ':pty4j-0.7.2'
2017-01-30 13:57:43 +00:00
testCompile group: 'junit', name: 'junit', version: "$junit_version"
}
2017-01-18 14:02:23 +00:00
// We don't want the Node to drag these transitive dependencies in either!
2017-02-04 22:36:42 +00:00
configurations.all {
exclude module: 'commons-logging'
exclude module: 'log4j-slf4j-impl'
exclude module: 'log4j-core'
}
jar {
manifest {
attributes 'Main-Class': mainClassName
}
2017-01-18 14:02:23 +00:00
}
distributions {
main() {
contents {
into('lib/linux') {
from 'libs/linux'
}
into('lib/macosx') {
from 'libs/macosx'
}
into('lib/win') {
from 'libs/win'
}
2017-02-04 16:23:51 +00:00
from(project(':tools:explorer:capsule').tasks.buildExplorerJAR) {
rename 'node-explorer-(.*)', 'node-explorer.jar'
into 'explorer'
}
from(project(':node:capsule').tasks.buildCordaJAR) {
2017-02-04 16:23:51 +00:00
rename 'corda-(.*)', 'corda.jar'
into 'corda'
}
from(project(':samples:bank-of-corda-demo').jar) {
2017-02-04 16:23:51 +00:00
rename 'bank-of-corda-demo-(.*)', 'bank-of-corda.jar'
into 'plugins'
}
}
}
}