-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (54 loc) · 1.79 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/6.9.1/samples
*/
apply plugin: 'java'
repositories {
mavenCentral()
}
tasks.withType(JavaCompile).configureEach {
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(16)
}
}
tasks.withType(Test) {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(16)
}
}
class JMeterRule implements ComponentMetadataRule {
void execute(ComponentMetadataContext context) {
context.details.allVariants {
withDependencies {
removeAll { it.group == "org.apache.jmeter" && it.name == "bom" }
}
}
}
}
test {
useJUnitPlatform()
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'us.abstracta.jmeter:jmeter-java-dsl:0.33'
implementation "org.assertj:assertj-core:3.11.1"
implementation 'org.junit.jupiter:junit-jupiter:5.8.1'
components {
withModule("org.apache.jmeter:ApacheJMeter_core", JMeterRule)
withModule("org.apache.jmeter:ApacheJMeter_java", JMeterRule)
withModule("org.apache.jmeter:ApacheJMeter", JMeterRule)
withModule("org.apache.jmeter:ApacheJMeter_http", JMeterRule)
withModule("org.apache.jmeter:ApacheJMeter_functions", JMeterRule)
withModule("org.apache.jmeter:ApacheJMeter_components", JMeterRule)
withModule("org.apache.jmeter:ApacheJMeter_config", JMeterRule)
withModule("org.apache.jmeter:jorphan", JMeterRule)
}
}
jar {
archiveBaseName = 'gs-gradle'
archiveVersion = '0.1.0'
}
apply plugin: 'application'
mainClassName = 'hello.PerformanceTest'