2017-10-31 17:22:58 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'application'
|
|
|
|
|
|
|
|
mainClassName = 'net.corda.jmeter.Launcher'
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':client:rpc')
|
|
|
|
|
|
|
|
// JMeter
|
|
|
|
ext.jmVersion = "3.3"
|
|
|
|
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_components', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_core', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_ftp', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_functions', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_http', version: "$jmVersion"
|
|
|
|
compile group: 'org.apache.jmeter', name: 'ApacheJMeter_java', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_jdbc', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_jms', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_junit', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_ldap', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_mail', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_mongodb', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_native', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_tcp', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_config', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'ApacheJMeter', version: "$jmVersion"
|
|
|
|
runtime group: 'org.apache.jmeter', name: 'jorphan', version: "$jmVersion"
|
|
|
|
|
2017-11-02 11:44:27 +00:00
|
|
|
//compile project(":test-utils")
|
2017-10-31 17:22:58 +00:00
|
|
|
compile project(":finance")
|
|
|
|
}
|
|
|
|
|
2017-11-02 11:44:27 +00:00
|
|
|
task(runServer, dependsOn: 'classes', type: JavaExec) {
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
main = 'net.corda.jmeter.Launcher'
|
|
|
|
systemProperty "search_paths", project(':tools:jmeter').configurations.runtime.files.join(";")
|
|
|
|
systemProperty "java.rmi.server.hostname", InetAddress.getLocalHost().getHostName()
|
|
|
|
//jvmArgs += "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
|
|
|
|
args+= [ "-p", sourceSets.main.resources.getSrcDirs().first().getPath()+"/jmeter.properties",
|
|
|
|
"-d", sourceSets.main.resources.getSrcDirs().first().getPath(),
|
|
|
|
"-j", buildDir.getPath()+"/jmeter.log",
|
|
|
|
"-s" ]
|
|
|
|
}
|
2017-10-31 17:22:58 +00:00
|
|
|
|
|
|
|
run {
|
|
|
|
systemProperty "search_paths", project(':tools:jmeter').configurations.runtime.files.join(";")
|
|
|
|
//jvmArgs += "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
|
|
|
|
args+= [ "-p", sourceSets.main.resources.getSrcDirs().first().getPath()+"/jmeter.properties",
|
|
|
|
"-d", sourceSets.main.resources.getSrcDirs().first().getPath(),
|
|
|
|
"-j", buildDir.getPath()+"/jmeter.log" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
2017-11-02 11:44:27 +00:00
|
|
|
from(configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }) {
|
|
|
|
exclude "META-INF/*.SF"
|
|
|
|
exclude "META-INF/*.DSA"
|
|
|
|
exclude "META-INF/*.RSA"
|
|
|
|
}
|
2017-10-31 17:22:58 +00:00
|
|
|
manifest {
|
|
|
|
attributes(
|
2017-11-02 11:44:27 +00:00
|
|
|
'Automatic-Module-Name': 'net.corda.tools.jmeter',
|
|
|
|
'Main-Class': mainClassName
|
2017-10-31 17:22:58 +00:00
|
|
|
)
|
|
|
|
}
|
2017-11-02 11:44:27 +00:00
|
|
|
zip64 = true
|
2017-10-31 17:22:58 +00:00
|
|
|
}
|