-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
78 lines (61 loc) · 2.1 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
74
75
76
77
78
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
val exposedVersion = "0.39.2"
val http4kVersion = "4.29.0.0"
val junitVersion = "5.9.0"
val kotlinVersion = "1.7.0"
val logbackVersion = "1.4.0"
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0")
}
}
plugins {
application
kotlin("jvm") version "1.7.10"
id("com.github.johnrengelman.shadow") version "7.0.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation(platform("org.http4k:http4k-bom:4.30.3.0"))
implementation("org.http4k:http4k-client-okhttp")
implementation("org.http4k:http4k-core")
implementation("org.http4k:http4k-format-jackson")
implementation("org.http4k:http4k-server-jetty")
implementation("org.http4k:http4k-template-handlebars")
implementation("org.http4k:http4k-cloudnative")
implementation("org.http4k:http4k-security-oauth")
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-java-time:$exposedVersion")
implementation("org.postgresql:postgresql:42.5.0")
implementation("ch.qos.logback:logback-classic:$logbackVersion")
testImplementation("org.http4k:http4k-testing-kotest")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
}
application {
mainClass.set("io.jterrier.fiprecorder.MainKt")
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("fip-recorder")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "io.jterrier.fiprecorder.MainKt"))
}
}
build {
dependsOn(shadowJar)
}
}
val test by tasks.getting(Test::class) {
useJUnitPlatform { }
}