-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (55 loc) · 1.9 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
60
61
62
63
64
65
66
67
68
69
70
71
72
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
group 'io.aethibo'
version '0.0.1-SNAPSHOT'
mainClassName = "io.ktor.server.netty.EngineMain"
sourceSets {
main.kotlin.srcDirs = main.java.srcDirs = ['src']
test.kotlin.srcDirs = test.java.srcDirs = ['test']
main.resources.srcDirs = ['resources']
test.resources.srcDirs = ['testresources']
}
repositories {
mavenLocal()
mavenCentral()
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "io.ktor:ktor-server-netty:$ktor_version"
implementation "ch.qos.logback:logback-classic:$logback_version"
// Gson - Content negotiation
implementation "io.ktor:ktor-gson:$ktor_version"
// Koin - Dependency injection
implementation "io.insert-koin:koin-ktor:$koin_version"
implementation "io.insert-koin:koin-logger-slf4j:$koin_version"
// Hikari - connection pooling
implementation "com.zaxxer:HikariCP:$hikari_version"
// H2 database (in memory)
implementation "com.h2database:h2:$h2database_version"
// Postgres database (persistence)
implementation "org.postgresql:postgresql:$postgresql_version"
// Exposed - (sql library)
implementation "org.jetbrains.exposed:exposed-core:$exposed_version"
implementation "org.jetbrains.exposed:exposed-jdbc:$exposed_version"
// Locations - type-safe routes
implementation "io.ktor:ktor-locations:$ktor_version"
// JWT
implementation "com.auth0:java-jwt:$jwt_version"
// Auth - JWT
implementation "io.ktor:ktor-auth-jwt:$ktor_version"
testImplementation "io.ktor:ktor-server-tests:$ktor_version"
}