-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
59 lines (47 loc) · 2 KB
/
build.gradle
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
plugins {
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.7.10'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.7.10'
}
group "com.santansarah"
version "0.0.1"
mainClassName = "com.santansarah.ApplicationKt"
def isDevelopment = project.ext.has("development")
applicationDefaultJvmArgs = ["-Dio.ktor.development=$isDevelopment"]
repositories {
mavenLocal()
mavenCentral()
google()
}
dependencies {
implementation "io.ktor:ktor-server-content-negotiation-jvm:$ktor_version"
implementation "io.ktor:ktor-server-core-jvm:$ktor_version"
implementation "io.ktor:ktor-serialization-kotlinx-json-jvm:$ktor_version"
implementation "io.ktor:ktor-server-netty-jvm:$ktor_version"
implementation "ch.qos.logback:logback-classic:$logback_version"
testImplementation "io.ktor:ktor-server-tests-jvm:$ktor_version"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
// https://github.com/LukasForst/ktor-api-key
implementation "dev.forst:ktor-api-key:1.1.0"
// JWT
implementation("io.ktor:ktor-server-auth:$ktor_version")
implementation("io.ktor:ktor-server-auth-jwt:$ktor_version")
// Exposed
implementation "org.jetbrains.exposed:exposed-core:$exposedVersion"
implementation "org.jetbrains.exposed:exposed-dao:$exposedVersion"
implementation "org.jetbrains.exposed:exposed-jdbc:$exposedVersion"
// database
implementation "org.jetbrains.exposed:exposed-java-time:$exposedVersion"
implementation "org.xerial:sqlite-jdbc:3.36.0.3"
//exceptions - status pages
implementation "io.ktor:ktor-server-status-pages:$ktor_version"
//logging
implementation "org.slf4j:slf4j-nop:1.7.36"
//bcrypt for encryption
implementation "at.favre.lib:bcrypt:0.9.0"
// Koin for Ktor; make sure you go to File...Project Structure
// and switch to Java 11
implementation "io.insert-koin:koin-ktor:3.2.0"
// SLF4J Logger
implementation "io.insert-koin:koin-logger-slf4j:$koin_version"
}