-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle.kts
83 lines (73 loc) · 2.4 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
79
80
81
82
83
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.ktor)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.shadow)
}
group = "com.piashcse"
version = "1.0.0"
application {
mainClass.set("com.piashcse.ApplicationKt")
// adding this for fatjar
project.setProperty("mainClassName", "com.piashcse.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
maven { url = uri("https://jitpack.io") }
}
dependencies {
implementation(libs.ktor.server.core)
implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.ktor.server.content.negotiation)
implementation(libs.exposed.core)
implementation(libs.exposed.jdbc)
implementation(libs.ktor.serialization.gson)
implementation(libs.ktor.server.host.common)
implementation(libs.ktor.server.status.pages)
implementation(libs.ktor.server.auth)
implementation(libs.ktor.server.auth.jwt)
implementation(libs.ktor.server.netty)
implementation(libs.logback.classic)
implementation(libs.ktor.server.call.logging)
implementation(libs.ktor.server.request.validation)
testImplementation(libs.ktor.server.test.host)
testImplementation(libs.kotlin.test.junit)
implementation(libs.flyway.core)
implementation(libs.exposed.core)
implementation(libs.exposed.jdbc)
implementation(libs.exposed.dao)
implementation(libs.exposed.java.time)
implementation(libs.exposed.kotlin.datetime)
implementation(libs.postgresql)
implementation(libs.hikari)
implementation(libs.bcrypt)
implementation(libs.kotlinx.datetime)
implementation(libs.commons.email)
implementation(libs.valiktor.core)
implementation(libs.commons.io)
implementation(libs.ktor.swagger.ui)
implementation(libs.swagger.parser)
implementation(libs.koin.ktor)
implementation(libs.koin.core)
implementation(libs.koin.logger)
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.create("stage") {
dependsOn("installDist")
}