-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
74 lines (63 loc) · 2.28 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
var PROJECT_VERSION: String = "1.1"
var EXPOSED: String = "0.38.1"
var KTOR: String = "2.0.1"
var VK_API_SDK: String = "1.0.14"
var LOGBACK: String = "1.2.11"
var REFLECT: String = "1.6.21"
var LOGGING: String = "2.1.21"
var JVM_TARGET: String = "1.8"
var DOTENV: String = "6.2.2"
var GSON: String = "2.9.0"
plugins {
application
kotlin("jvm") version "1.6.20"
kotlin("plugin.serialization") version "1.4.21"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
application {
mainClass.set("ser.MainKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
group = "ser"
version = PROJECT_VERSION
repositories {
mavenCentral()
google()
}
dependencies {
testImplementation(kotlin("test"))
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.0.1-2")
implementation("io.ktor:ktor-server-core:${KTOR}")
implementation("io.ktor:ktor-server-netty:${KTOR}")
implementation("io.ktor:ktor-serialization-kotlinx-json:${KTOR}")
implementation("io.ktor:ktor-server-content-negotiation:${KTOR}")
implementation("io.ktor:ktor-client-core:${KTOR}")
implementation("io.ktor:ktor-client-cio:${KTOR}")
implementation("org.jetbrains.exposed", "exposed-core", "0.38.1")
implementation("org.jetbrains.exposed", "exposed-dao", "0.38.1")
implementation("org.jetbrains.exposed", "exposed-jdbc", "0.38.1")
implementation("org.xerial:sqlite-jdbc:3.36.0.3")
implementation("mysql:mysql-connector-java:8.0.29")
implementation("com.zaxxer:HikariCP:5.0.1")
implementation("ch.qos.logback:logback-classic:${LOGBACK}")
implementation("org.jetbrains.kotlin:kotlin-reflect:${REFLECT}")
implementation("io.github.microutils:kotlin-logging-jvm:${LOGGING}")
implementation(kotlin("script-runtime"))
implementation("com.vk.api:sdk:${VK_API_SDK}")
implementation("io.github.cdimascio:dotenv-kotlin:${DOTENV}")
implementation("com.google.code.gson:gson:${GSON}")
}
tasks.test {
useJUnitPlatform()
}
tasks.jar {
manifest.attributes["Main-Class"] = "ser.MainKt"
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = JVM_TARGET
}
tasks {
create("stage").dependsOn("installDist")
}