This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
67 lines (52 loc) · 1.68 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
plugins {
id("application")
kotlin("jvm") version "1.5.21"
kotlin("plugin.serialization") version "1.5.20"
id("com.github.johnrengelman.shadow") version "7.0.0"
}
group = "it.docaliassicurazioni"
version = "0.0.1"
application {
mainClass.set("it.docaliassicurazioni.ApplicationKt")
}
repositories {
mavenCentral()
}
dependencies {
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-client-serialization:$ktor_version")
implementation("io.ktor:ktor-server-sessions:$ktor_version")
implementation("io.ktor:ktor-serialization:$ktor_version")
implementation("io.ktor:ktor-server-sessions:$ktor_version")
implementation("io.ktor:ktor-auth:$ktor_version")
implementation("io.ktor:ktor-server-core:$ktor_version")
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("org.litote.kmongo:kmongo:4.2.8")
implementation("redis.clients:jedis:3.6.3")
implementation("io.github.cdimascio:dotenv-kotlin:6.2.2")
implementation("io.github.microutils:kotlin-logging:2.0.10")
}
tasks {
withType(JavaCompile::class) {
options.encoding = "UTF-8"
}
withType(KotlinCompile::class) {
kotlinOptions {
jvmTarget = "1.8"
}
}
shadowJar {
archiveFileName.set("docali-backend.jar")
}
}
tasks {
build {
dependsOn(shadowJar)
}
}