-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (53 loc) · 1.69 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
buildscript {
ext.kotlin_version = '1.2.21'
ext.spring_boot_version = '2.0.0.RC1'
repositories {
mavenCentral()
maven { url 'http://repo.spring.io/milestone' }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version" // See https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-plugin
}
}
plugins {
id 'com.github.kt3k.coveralls' version '2.8.2'
}
apply plugin: 'kotlin'
apply plugin: 'kotlin-spring'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'jacoco'
repositories {
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
}
jacoco {
toolVersion = "0.8.0"
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.jetbrains.kotlin:kotlin-stdlib"
compile "org.jetbrains.kotlin:kotlin-reflect"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.4"
compile "io.vavr:vavr-kotlin:0.9.2"
compile 'io.github.microutils:kotlin-logging:1.4.9'
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile "com.nhaarman:mockito-kotlin:1.5.0"
testCompile "org.assertj:assertj-core:3.9.0"
}
compileKotlin {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
kotlinOptions {
jvmTarget = "1.8"
}
}