-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
87 lines (69 loc) · 2.07 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
plugins {
id 'java'
id 'java-library'
id 'checkstyle'
id 'pmd'
id 'jacoco'
}
group 'com.github.hmcts'
version 'DEV-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
maven {
url 'https://repo.spring.io/libs-milestone'
}
}
configurations.all {
exclude group: 'commons-logging', module: 'commons-logging'
}
// region static code analysis
pmd {
toolVersion = "6.55.0"
ignoreFailures = true
sourceSets = [sourceSets.test]
reportsDir = file("$project.buildDir/reports/pmd")
ruleSetFiles = files("config/pmd/ruleset.xml")
}
// endregion
// region test coverage
jacoco {
toolVersion = "0.8.12"
}
jacocoTestReport {
reports {
xml.required = true
csv.required = false
}
}
// endregion
task highLevelDataSetup(type: JavaExec) {
dependsOn classes
main = "finrem.HighLevelDataSetupApp"
classpath += sourceSets.test.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang.reflect=ALL-UNNAMED']
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging {
exceptionFormat = 'full'
}
}
dependencies {
testImplementation(platform(group: 'org.junit', name: 'junit-bom', version: '5.11.4'))
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter'
testImplementation group: 'com.github.hmcts', name: 'befta-fw', version: '9.1.0'
testImplementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.18.2'
testImplementation group: 'commons-io', name: 'commons-io', version: '2.18.0'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.27.2'
testImplementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.16'
testRuntimeOnly group: 'org.glassfish', name: 'jakarta.el', version: '4.0.2'
testCompileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.36'
testAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.36'
}