-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
72 lines (58 loc) · 1.85 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
72
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
import org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
plugins {
kotlin("jvm") version "2.1.0"
application
id("com.github.johnrengelman.shadow") version "8.1.1"
id("org.jlleitschuh.gradle.ktlint") version "12.1.2"
}
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
}
}
val http4kVersion: String by project
val junitVersion: String by project
val kotlinVersion: String by project
application {
mainClass = "org.rogervinas.GreetingApplicationdKt"
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.http4k:http4k-client-okhttp:$http4kVersion")
implementation("org.http4k:http4k-core:$http4kVersion")
implementation("org.http4k:http4k-format-jackson:$http4kVersion")
implementation("org.http4k:http4k-server-undertow:$http4kVersion")
implementation("org.http4k:http4k-cloudnative:$http4kVersion")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation("org.postgresql:postgresql:42.7.4")
implementation("com.bettercloud:vault-java-driver:5.1.0")
testImplementation("org.http4k:http4k-testing-approval:$http4kVersion")
testImplementation("org.http4k:http4k-testing-hamkrest:$http4kVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("io.mockk:mockk:1.13.14")
testImplementation("org.testcontainers:junit-jupiter:1.20.4")
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events(PASSED, SKIPPED, FAILED)
}
}