forked from navikt/fhir-validator-junit-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
62 lines (53 loc) · 1.66 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
id("com.github.johnrengelman.shadow") version "7.1.0"
id("org.jlleitschuh.gradle.ktlint") version "10.2.0"
`java-library`
jacoco
}
group = "no.nav"
version = "0.1.0"
repositories {
mavenCentral()
}
tasks {
withType<Test> {
useJUnitPlatform()
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
archiveClassifier.set("") // Removes the '.all' postfix from the file.
dependencies {
// Already available in validator_cli.jar and can therefore be omitted to reduce size.
exclude(dependency("com.fasterxml.*::"))
}
}
jar {
manifest {
attributes(
mapOf(
"Implementation-Title" to project.name,
"Implementation-Version" to project.version
)
)
}
}
jacocoTestReport {
dependsOn(test)
}
}
dependencies {
compileOnly("ca.uhn.hapi.fhir:org.hl7.fhir.validation:5.5.9")
compileOnly("org.junit.platform:junit-platform-engine:1.8.1")
implementation("com.github.shyiko.klob:klob:0.2.1")
implementation("com.sksamuel.hoplite:hoplite-json:1.4.9")
implementation("com.sksamuel.hoplite:hoplite-yaml:1.4.9")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
testImplementation("org.junit.platform:junit-platform-testkit:1.8.1")
testRuntimeOnly("ca.uhn.hapi.fhir:org.hl7.fhir.validation:5.5.7")
testRuntimeOnly("com.squareup.okhttp3:okhttp:4.9.2")
testRuntimeOnly("org.slf4j:slf4j-nop:1.7.32")
}