-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (69 loc) · 2.38 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
73
74
75
76
77
78
79
apply from: 'gradle/flyway.gradle'
buildscript {
ext.kotlin_version = '1.1.3-2'
ext.ktor_version = '0.3.3'
ext.logback_version = '1.2.1'
ext.flyway_version = '4.2.0'
ext.exposed_version = '0.8.5'
ext.mysql_connector_version = '6.0.5'
ext.konfig_version = '1.6.2.1'
ext.spek_version = '1.1.2'
ext.junit_version = '1.0.0-M4'
ext.gson_version = '2.8.0'
repositories {
mavenCentral()
maven { setUrl("https://plugins.gradle.org/m2/") }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "gradle.plugin.com.boxfuse.client:flyway-release:${flyway_version}"
classpath "org.junit.platform:junit-platform-gradle-plugin:$junit_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'org.junit.platform.gradle.plugin'
mainClassName = 'com.example.MainKt'
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
kotlin {
experimental {
coroutines "enable"
}
}
junitPlatform {
filters {
engines {
include 'spek'
}
}
}
repositories {
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/ktor") }
maven { setUrl("https://dl.bintray.com/kotlin/kotlinx") }
maven { setUrl("https://dl.bintray.com/kotlin/exposed") }
maven { setUrl("http://dl.bintray.com/jetbrains/spek") }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.jetbrains.ktor:ktor-netty:$ktor_version"
compile "ch.qos.logback:logback-classic:$logback_version"
compile "org.jetbrains.exposed:exposed:$exposed_version"
compile "mysql:mysql-connector-java:$mysql_connector_version"
compile "com.natpryce:konfig:version=$konfig_version"
compile "org.jetbrains.spek:spek-api:$spek_version"
compile "com.google.code.gson:gson:$gson_version"
testCompile "org.junit.platform:junit-platform-console:$junit_version"
testCompile "org.junit.platform:junit-platform-launcher:$junit_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "org.jetbrains.spek:spek-api:$spek_version"
testCompile "org.jetbrains.ktor:ktor-test-host:$ktor_version"
testRuntime "org.jetbrains.spek:spek-junit-platform-engine:$spek_version"
}