-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
49 lines (41 loc) · 961 Bytes
/
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
kotlin("jvm") version "2.1.0"
id("com.gradleup.shadow") version "9.0.0-beta4"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
api("org.ktorm:ktorm-core:latest.release")
api("ch.qos.logback:logback-classic:latest.release")
api("io.github.oshai:kotlin-logging-jvm:latest.release")
api("com.azure:azure-storage-blob:latest.release")
api("org.duckdb:duckdb_jdbc:latest.release")
}
sourceSets {
main {
kotlin.srcDir("src")
}
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "main.MainKt"
}
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("shadow")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "main.MainKt"))
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
}