-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
59 lines (50 loc) · 1.26 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
plugins {
id 'com.diffplug.spotless' version '6.11.0'
id 'com.star-zero.gradle.githook' version '1.2.1'
id "io.quintessent.jmeter" version "1.1.1-5.0"
id 'ru.netris.commitlint' version '1.4.1'
id 'java'
}
sourceCompatibility = '11'
version = '0.0.1-SNAPSHOT'
repositories {
mavenCentral()
}
githook {
failOnMissingHooksDir = false
hooks {
'commit-msg' {
task = 'commitlint'
}
}
}
spotless {
format 'xml', {
target 'src/test/**/*.xml', 'src/test/**/*.jmx'
eclipseWtp('xml')
}
}
jmeter {
jmTestFiles = [file('src/test/jmeter/example.jmx')]
jmSystemPropertiesFiles = [file('src/test/jmeter/jmeter.properties')]
csvLogFile = false
enableReports = true
enableExtendedReports = true
}
task lint() {
dependsOn 'spotlessXmlCheck'
description = 'Checks that source code satisfies formatting steps.'
group = 'Verification'
}
task format() {
dependsOn 'spotlessXmlApply'
description = 'Applies code formatting steps to source code in-place.'
group = 'Verification'
}
task jmeterResources(type: Copy) {
into "$buildDir/jmeter/bin"
from "$projectDir/src/test/resources"
include 'log4j2.xml'
}
jmRun.dependsOn jmeterResources
jmGui.dependsOn jmeterResources