2016-10-17 16:50:33 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'application'
|
|
|
|
|
2016-11-16 11:16:42 +00:00
|
|
|
mainClassName = 'net.corda.loadtest.MainKt'
|
2016-10-17 16:50:33 +00:00
|
|
|
|
|
|
|
dependencies {
|
2017-03-21 19:45:12 +00:00
|
|
|
compile project(':client:mock')
|
2017-03-22 15:52:54 +00:00
|
|
|
compile project(':client:rpc')
|
2017-09-05 08:50:51 +00:00
|
|
|
compile project(':node-driver')
|
2016-10-17 16:50:33 +00:00
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/com.jcraft/jsch
|
2019-06-20 15:19:16 +00:00
|
|
|
compile "com.jcraft:jsch:$jsch_version"
|
2016-10-17 16:50:33 +00:00
|
|
|
compile group: 'com.jcraft', name: 'jsch.agentproxy.core', version: '0.0.9'
|
|
|
|
compile group: 'com.jcraft', name: 'jsch.agentproxy.sshagent', version: '0.0.9'
|
|
|
|
compile group: 'com.jcraft', name: 'jsch.agentproxy.usocket-jna', version: '0.0.9'
|
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/de.danielbechler/java-object-diff
|
|
|
|
compile group: 'de.danielbechler', name: 'java-object-diff', version: '0.10.2'
|
|
|
|
|
2017-01-03 14:15:23 +00:00
|
|
|
// TypeSafe Config: for simple and human friendly config files.
|
|
|
|
compile "com.typesafe:config:$typesafe_config_version"
|
2016-10-17 16:50:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
run {
|
2017-04-11 10:54:17 +00:00
|
|
|
if (project.hasProperty('loadtest-config')) {
|
|
|
|
args project["loadtest-config"]
|
|
|
|
}
|
2017-06-20 09:52:47 +00:00
|
|
|
System.properties.forEach { k, v ->
|
2017-06-16 14:30:11 +00:00
|
|
|
if (k.toString().startsWith("loadtest."))
|
|
|
|
systemProperty k, v
|
|
|
|
}
|
2017-06-20 09:52:47 +00:00
|
|
|
if (System.properties.getProperty('consoleLogLevel') != null) {
|
|
|
|
logging.captureStandardOutput(LogLevel.valueOf(System.properties.getProperty('consoleLogLevel')))
|
|
|
|
logging.captureStandardError(LogLevel.valueOf(System.properties.getProperty('consoleLogLevel')))
|
|
|
|
systemProperty "consoleLogLevel", System.properties.getProperty('consoleLogLevel')
|
|
|
|
}
|
2016-10-17 16:50:33 +00:00
|
|
|
}
|
2017-10-06 14:37:33 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Automatic-Module-Name': 'net.corda.tools.loadtest'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|