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" //compile project(":test-utils") compile project(":finance") } 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" ] } 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 { from(configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }) { exclude "META-INF/*.SF" exclude "META-INF/*.DSA" exclude "META-INF/*.RSA" } manifest { attributes( 'Automatic-Module-Name': 'net.corda.tools.jmeter', 'Main-Class': mainClassName ) } zip64 = true }