-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
150 lines (126 loc) · 4.27 KB
/
Copy pathbuild.gradle
File metadata and controls
150 lines (126 loc) · 4.27 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
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.translator.Gp2gpTranslatorApplication'
}
repositories {
mavenCentral()
}
ext {
set("springCloudVersion", "2025.0.0")
}
dependencies {
implementation project(':common')
implementation project(':db-connector')
implementation project(':schema')
implementation 'com.github.spullara.mustache.java:compiler:0.9.14'
implementation 'org.jdbi:jdbi3-core:3.49.5'
implementation 'org.jetbrains:annotations:26.0.2'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway-server-webflux'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.junit.jupiter:junit-jupiter:6.0.0'
testImplementation 'org.assertj:assertj-core:3.27.3'
testImplementation 'org.mockito:mockito-inline:5.2.0'
testImplementation 'org.projectlombok:lombok'
testImplementation 'pl.pragmatists:JUnitParams:1.1.1'
testImplementation 'org.skyscreamer:jsonassert:1.5.3'
testImplementation 'org.awaitility:awaitility:4.2.2'
testImplementation 'io.findify:s3mock_2.13:0.2.6'
testImplementation 'org.testcontainers:testcontainers-azure:2.0.5'
// pitest 'com.arcmutate:base:1.3.2'
// pitest 'com.arcmutate:pitest-git-plugin:2.0.0'
implementation 'com.azure:azure-storage-blob:12.29.0'
implementation 'software.amazon.awssdk:s3:2.30.11'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
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')
}
}
transformXmlToJson {
java {
compileClasspath += sourceSets.main.output + sourceSets.test.output
runtimeClasspath += sourceSets.main.output + sourceSets.test.output
}
}
}
configurations {
integrationTestCompileOnly.extendsFrom testCompileOnly
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntime.extendsFrom testRuntime
integrationTestAnnotationProcessor.extendsFrom testAnnotationProcessor
transformXmlToJsonImplementation.extendsFrom testImplementation
}
task integrationTest(type: Test) {
useJUnitPlatform() {
description = 'Runs integration tests.'
group = 'verification'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
shouldRunAfter test
}
}
tasks.register('transformXmlToJson', JavaExec) {
mainClass = 'uk.nhs.adaptors.pss.translator.TransformXmlToJsonApplication'
classpath = sourceSets.transformXmlToJson.runtimeClasspath
}
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
//}
checkstyle {
configFile file('../config/checkstyle/checkstyle.xml')
toolVersion '13.0.0'
}