-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
35 lines (29 loc) · 1.03 KB
/
build.gradle.kts
File metadata and controls
35 lines (29 loc) · 1.03 KB
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
plugins {
kotlin("jvm") version "2.1.0"
kotlin("plugin.serialization") version "2.1.10"
id("org.jlleitschuh.gradle.ktlint") version "12.2.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.2")
implementation(platform("org.http4k:http4k-bom:6.1.0.1"))
implementation("org.http4k:http4k-core")
implementation("org.http4k:http4k-server-jetty")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0")
implementation("org.slf4j:slf4j-simple:2.0.9") // for logging
implementation("org.postgresql:postgresql:42.+")
testImplementation(kotlin("test"))
}
tasks.register<Copy>("copyRuntimeDependencies") {
into("build/libs")
from(configurations.runtimeClasspath)
}
tasks.named<Jar>("jar") {
dependsOn("copyRuntimeDependencies")
manifest {
attributes["Main-Class"] = "pt.isel.ls.http.HTTPServerKt"
attributes["Class-Path"] = configurations.runtimeClasspath.get().joinToString(" ") { it.name }
}
}