-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
115 lines (92 loc) · 3.02 KB
/
build.gradle
File metadata and controls
115 lines (92 loc) · 3.02 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
plugins {
id "org.springframework.boot" version "3.5.5"
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
id "io.freefair.lombok" version "8.13.1"
id 'jacoco'
id 'checkstyle'
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'checkstyle'
apply plugin: 'org.springframework.boot'
group = 'uk.nhs.digital.nhsconnect.nhais'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
application {
mainClass = 'uk.nhs.digital.nhsconnect.nhais.IntegrationAdaptorNhaisApplication'
}
repositories {
mavenCentral()
}
sourceSets {
intTest {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
recepResponder {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
intTestImplementation.extendsFrom implementation
intTestImplementation.extendsFrom testImplementation
intTestRuntimeOnly.extendsFrom runtimeOnly
recepResponderImplementation.extendsFrom implementation
recepResponderImplementation.extendsFrom testImplementation
recepResponderRuntimeOnly.extendsFrom runtimeOnly
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework:spring-jms'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'com.heroku.sdk:env-keystore:1.1.11'
implementation 'ca.uhn.hapi.fhir:hapi-fhir-base:8.4.0'
implementation 'ca.uhn.hapi.fhir:hapi-fhir-structures-r4:8.4.0'
implementation 'ca.uhn.hapi.fhir:hapi-fhir-validation-resources-r4:8.4.0'
implementation 'com.google.guava:guava:33.4.8-jre'
implementation 'org.apache.qpid:qpid-jms-client:2.7.0'
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.783'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation "org.testcontainers:testcontainers:1.21.3"
testImplementation group: 'org.awaitility', name: 'awaitility', version: '4.3.0'
testImplementation("org.assertj:assertj-core:3.27.3")
}
test {
useJUnitPlatform() {
excludeTags 'component'
}
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
tasks.register('componentTest', Test) {
useJUnitPlatform() {
includeTags 'component'
testClassesDirs = testing.suites.test.sources.output.classesDirs
classpath = testing.suites.test.sources.runtimeClasspath
}
}
tasks.register('integrationTest', Test) {
useJUnitPlatform() {
description = 'Runs integration tests.'
group = 'verification'
testClassesDirs = sourceSets.intTest.output.classesDirs
classpath = sourceSets.intTest.runtimeClasspath
}
shouldRunAfter test
}
check.dependsOn componentTest
check.dependsOn integrationTest