-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
113 lines (97 loc) · 3.1 KB
/
Copy pathbuild.gradle
File metadata and controls
113 lines (97 loc) · 3.1 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
plugins {
id 'org.springframework.boot' version '3.5.7'
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
id 'checkstyle'
id 'com.github.spotbugs' version '6.1.11'
id 'io.freefair.lombok' version '9.0.0'
// Mutation testing
// id 'info.solidsoft.pitest' version '1.15.0'
// id 'com.arcmutate.github' version '2.0.0'
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'checkstyle'
apply plugin: "com.github.spotbugs"
apply plugin: 'application'
group 'uk.nhs.adaptors'
application {
mainClass = 'uk.nhs.adaptors.pss.gpc.GpcFacadeApplication'
}
repositories {
mavenCentral()
}
dependencies {
implementation project(':common')
implementation project(':db-connector')
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.junit.jupiter:junit-jupiter:6.0.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.assertj:assertj-core:3.27.3'
testImplementation 'org.projectlombok:lombok'
testImplementation 'org.mockito:mockito-inline:5.2.0'
testImplementation 'io.rest-assured:rest-assured:5.5.0'
// pitest 'com.arcmutate:base:1.3.2'
// pitest 'com.arcmutate:pitest-git-plugin:2.0.0'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
}
test {
useJUnitPlatform()
testLogging {
events "PASSED", "SKIPPED", "FAILED"
}
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integrationTest/java')
}
}
}
configurations {
integrationTestCompileOnly.extendsFrom testCompileOnly
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntime.extendsFrom testRuntime
integrationTestAnnotationProcessor.extendsFrom testAnnotationProcessor
}
task integrationTest(type: Test) {
useJUnitPlatform() {
description = 'Runs integration tests.'
group = 'verification'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
shouldRunAfter test
}
}
check.dependsOn integrationTest
tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
excludeFilter = rootProject.file('config/spotbugs/exclude.xml')
reports {
xml.enabled = true
html.enabled = false
}
}
//
//pitest {
// pitestVersion = '1.16.1'
// junit5PluginVersion = '1.2.1'
// outputFormats = ['gitci']
//
// // git feature limits analysis to contents of PR only
// features = ["+GIT(from[HEAD~1])"]
//
// // PRs which don't introduce any production code changes, shouldn't fail the Mutation Testing Actions Workflow
// failWhenNoMutations = false
//
// mutators = ['STRONGER', 'EXTENDED_ALL']
//
// threads = project.getGradle().getStartParameter().getMaxWorkerCount()
//}
//
//pitestGithub {
// deleteOldSummaries = true
//}