This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
71 lines (60 loc) · 1.84 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
63
64
65
66
67
68
69
70
71
val junitJupiterVersion = "5.7.1"
plugins {
kotlin("jvm") version "1.4.30"
}
buildscript {
dependencies {
classpath("org.junit.platform:junit-platform-gradle-plugin:1.2.0")
}
}
repositories {
mavenCentral()
maven("https://packages.confluent.io/maven/")
maven("https://kotlin.bintray.com/ktor")
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.navikt:rapids-and-rivers:6d6256d7cc")
testImplementation("io.mockk:mockk:1.10.0")
testImplementation("com.github.tomakehurst:wiremock:2.27.1") {
exclude(group = "junit")
}
testImplementation("no.nav:kafka-embedded-env:2.4.0")
testImplementation("org.awaitility:awaitility:4.0.3")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "14"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "14"
}
named<Jar>("jar") {
archiveBaseName.set("app")
manifest {
attributes["Main-Class"] = "no.nav.helse.sparkel.sykepengeperioder.AppKt"
attributes["Class-Path"] = configurations.runtimeClasspath.get().joinToString(separator = " ") {
it.name
}
}
doLast {
configurations.runtimeClasspath.get().forEach {
val file = File("$buildDir/libs/${it.name}")
if (!file.exists())
it.copyTo(file)
}
}
}
withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
withType<Wrapper> {
gradleVersion = "6.8.2"
}
}