-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (48 loc) · 1.73 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
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
val postgres_version: String by project
val h2_version: String by project
plugins {
kotlin("jvm") version "1.9.21"
id("io.ktor.plugin") version "2.3.6"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.21"
id("org.flywaydb.flyway") version "10.0.0"
}
group = "com.ktor"
version = "0.0.1"
application {
mainClass.set("com.ktor.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
}
buildscript {
dependencies {
classpath("org.flywaydb:flyway-database-postgresql:10.0.0")
}
}
dependencies {
implementation("io.ktor:ktor-server-core-jvm")
implementation("io.ktor:ktor-server-content-negotiation-jvm")
implementation("io.ktor:ktor-serialization-jackson-jvm")
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm")
implementation("org.postgresql:postgresql:$postgres_version")
implementation("com.h2database:h2:$h2_version")
implementation("io.ktor:ktor-server-auth-jvm")
implementation("io.ktor:ktor-server-default-headers-jvm")
implementation("io.ktor:ktor-server-openapi")
implementation("io.ktor:ktor-server-netty-jvm")
implementation("ch.qos.logback:logback-classic:$logback_version")
testImplementation("io.ktor:ktor-server-tests-jvm")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
implementation("org.flywaydb:flyway-core:10.1.0")
}
flyway {
user="arvind"
password=""
driver="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/playground"
}