-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
42 lines (34 loc) · 1.13 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
group 'com.huzaus'
version '1.1'
apply plugin: 'groovy'
apply plugin: 'java'
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.8'
compile 'org.eclipse.jetty.websocket:websocket-client:9.1.1.v20140108:hybrid'
compile 'org.apache.jmeter:ApacheJMeter:3.1'
compile 'org.apache.jmeter:ApacheJMeter_core:3.1'
compile 'org.apache.jmeter:ApacheJMeter_http:3.1'
compile 'com.google.guava:guava:19.0'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'cglib:cglib-nodep:3.2.4'
testCompile 'org.objenesis:objenesis:2.5'
}
task copySample(type: Copy, dependsOn: [build]) {
from jar.archivePath
into jmeterHome + '/libexec/lib/ext/'
doLast {
println "[INFO] " + jar.archivePath + " copied to " + jmeterHome + '/libexec/lib/ext/'
}
}
task openSampleMac(type: Exec, dependsOn: [copySample]) {
workingDir buildDir
commandLine jmeterHome + '/bin/jmeter', '-t', './resources/test/sample.jmx'
}
test {
systemProperty 'jmeter.home', jmeterHome
systemProperty 'jmeter.properties', jmeterProperties
}