-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (61 loc) · 1.78 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
73
import org.gradle.api.JavaVersion.VERSION_11
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
plugins {
kotlin("jvm") version libs.versions.kotlin
kotlin("plugin.serialization") version libs.versions.kotlin
application
id("com.gradleup.shadow") version "8.3.0"
}
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
}
}
application {
mainClass = "nu.local4local.backend.MainKt"
}
tasks {
shadowJar {
archiveBaseName.set(project.name)
archiveClassifier = null
archiveVersion = null
mergeServiceFiles()
dependsOn(distTar, distZip)
isZip64 = true
}
}
repositories {
mavenCentral()
}
apply(plugin = "kotlin")
tasks {
withType<KotlinJvmCompile>().configureEach {
compilerOptions {
allWarningsAsErrors = false
jvmTarget.set(JVM_11)
freeCompilerArgs.add("-Xjvm-default=all")
}
}
withType<Test> {
useJUnitPlatform()
}
java {
sourceCompatibility = VERSION_11
targetCompatibility = VERSION_11
}
}
dependencies {
val http4kVersion = "5.26.0.0"
implementation(project(":common"))
implementation("org.http4k:http4k-core:${http4kVersion}")
implementation("org.http4k:http4k-format-kotlinx-serialization:${http4kVersion}")
implementation("org.jetbrains.kotlin:kotlin-stdlib:${libs.versions.kotlin}")
testImplementation("org.http4k:http4k-testing-approval:${http4kVersion}")
testImplementation("org.http4k:http4k-testing-hamkrest:${http4kVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.10.2")
}