-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
65 lines (52 loc) · 1.74 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
import org.gradle.api.JavaVersion.VERSION_21
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
plugins {
kotlin("jvm") version "2.0.0"
}
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
}
val http4kVersion: String by project
val junitVersion: String by project
repositories {
mavenCentral()
}
apply(plugin = "kotlin")
tasks {
withType<KotlinJvmCompile>().configureEach {
compilerOptions {
allWarningsAsErrors = false
jvmTarget.set(JVM_21)
freeCompilerArgs.add("-Xjvm-default=all")
}
}
withType<Test> {
useJUnitPlatform()
}
java {
sourceCompatibility = VERSION_21
targetCompatibility = VERSION_21
}
}
dependencies {
implementation(platform("org.http4k:http4k-bom:$http4kVersion"))
implementation("org.http4k:http4k-core")
implementation("org.http4k:http4k-client-okhttp")
implementation("org.http4k:http4k-cloudnative")
implementation("org.http4k:http4k-contract")
implementation("org.http4k:http4k-format-jackson")
implementation("org.http4k:http4k-security-oauth")
implementation("org.http4k:http4k-server-undertow")
implementation("org.http4k:http4k-template-handlebars")
testImplementation(platform("org.junit:junit-bom:$junitVersion"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.http4k:http4k-testing-hamkrest")
testImplementation("org.http4k:http4k-testing-chaos")
testImplementation("org.http4k:http4k-testing-approval")
testImplementation("org.http4k:http4k-testing-webdriver")
}