-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (43 loc) · 1.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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.10"
application
}
group = "me.reoru"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
val exposedVersion: String by project
val psql: String by project
val h2: String by project
val slf4f: String by project
val kotlinVersion: String by project
val logBack: String by project
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test:1.5.31")
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("org.postgresql:postgresql:$psql")
implementation("com.h2database:h2:$h2")
implementation("org.slf4j:slf4j-simple:$slf4f")
implementation("io.ktor:ktor-server-netty:$kotlinVersion")
implementation("io.ktor:ktor-server-core:$kotlinVersion")
implementation("io.ktor:ktor-client-core:$kotlinVersion")
implementation("io.ktor:ktor-client-core-jvm:$kotlinVersion")
implementation("io.ktor:ktor-client-apache:$kotlinVersion")
testImplementation("io.ktor:ktor-server-tests:$kotlinVersion")
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
tasks.create("stage") {
dependsOn("installDist")
}
application {
mainClass.set("MainKt")
}