-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
53 lines (45 loc) · 1.57 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.jengelman.gradle.plugins:shadow:5.0.0'
}
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'kotlin'
apply plugin: 'application'
group 'ktor-kmongo-sample'
version '1.0.0-SNAPSHOT'
mainClassName = 'com.cxyzy.ktor.demo.ApplicationKt'
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()
jcenter()
maven { url 'https://kotlin.bintray.com/ktor' }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-netty:$ktor_version"
compile "ch.qos.logback:logback-classic:$logback_version"
compile "io.ktor:ktor-server-core:$ktor_version"
compile "io.ktor:ktor-jackson:$ktor_version"
compile "io.ktor:ktor-locations:$ktor_version"
compile "io.ktor:ktor-metrics:$ktor_version"
testCompile "io.ktor:ktor-server-tests:$ktor_version"
compile 'org.litote.kmongo:kmongo-coroutine:3.10.0'
compile group: 'org.koin', name: 'koin-ktor', version: '2.0.0-beta-1'
compile group: 'org.koin', name: 'koin-core-ext', version: '2.0.0-beta-1'
testCompile group: 'org.koin', name: 'koin-test', version: '2.0.0-beta-1'
}
shadowJar {
baseName = 'ktor-kmongo-sample'
classifier = null
version = '1.0.0'
}