-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
103 lines (84 loc) · 2.72 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id 'org.springframework.boot' version "3.3.5"
id 'io.spring.dependency-management' version "1.1.6"
id 'java'
id 'jacoco'
id 'com.diffplug.spotless' version "6.25.0"
id "net.ltgt.errorprone" version "4.1.0"
id "org.sonarqube" version "5.1.0.4882"
}
group = "org.miracum.etl"
version = "3.14.2"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
ext {
set("springCloudVersion", "2023.0.3")
set("hapiVersion", "7.4.5")
}
dependencies {
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-data-jdbc"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.cloud:spring-cloud-stream"
implementation "org.springframework.cloud:spring-cloud-stream-binder-kafka"
implementation "org.springframework.kafka:spring-kafka"
implementation "org.miracum:kafka-fhir-serializer:1.0.8"
implementation "io.micrometer:micrometer-registry-prometheus:1.13.6"
implementation "io.micrometer:micrometer-core:1.13.6"
implementation "net.logstash.logback:logstash-logback-encoder:8.0"
implementation "ca.uhn.hapi.fhir:hapi-fhir-base:${hapiVersion}"
implementation "ca.uhn.hapi.fhir:hapi-fhir-client:${hapiVersion}"
implementation "ca.uhn.hapi.fhir:hapi-fhir-structures-r4:${hapiVersion}"
implementation "ca.uhn.hapi.fhir:hapi-fhir-client-okhttp:${hapiVersion}"
developmentOnly "org.springframework.boot:spring-boot-devtools"
runtimeOnly "org.postgresql:postgresql:42.7.4"
runtimeOnly 'com.h2database:h2:2.3.232'
testImplementation "org.springframework.boot:spring-boot-starter-test"
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
errorprone("com.google.errorprone:error_prone_core:2.35.1")
errorprone("com.uber.nullaway:nullaway:0.12.1")
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}
jacocoTestReport {
reports {
csv.required = true
html.required = true
xml.required = true
}
}
jar {
enabled = false
}
spotless {
java {
importOrder()
removeUnusedImports()
googleJavaFormat()
}
}
import net.ltgt.gradle.errorprone.CheckSeverity
tasks.withType(JavaCompile).configureEach {
options.errorprone {
check("NullAway", CheckSeverity.ERROR)
option("NullAway:AnnotatedPackages", "org.miracum")
}
// Include to disable NullAway on test code
if (name.toLowerCase().contains("test")) {
options.errorprone {
disable("NullAway")
}
}
}