-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle.kts
64 lines (51 loc) · 1.88 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
version = "1.0.0-SNAPSHOT"
buildscript {
repositories {
mavenCentral()
maven { setUrl("https://repo.spring.io/milestone") }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.M1")
}
}
plugins {
val kotlinVersion = "1.1.2"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
id("org.jetbrains.kotlin.plugin.noarg") version kotlinVersion
id("io.spring.dependency-management") version "1.0.3.RELEASE"
}
apply {
plugin("org.springframework.boot")
}
repositories {
mavenCentral()
maven { setUrl("https://repo.spring.io/milestone") }
maven { setUrl("https://repo.spring.io/snapshot") }
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
noArg {
annotation("org.springframework.data.mongodb.core.mapping.Document")
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jre8")
compile("org.jetbrains.kotlin:kotlin-reflect")
compile("org.springframework.boot:spring-boot-starter-webflux") {
exclude(module = "hibernate-validator")
}
compileOnly("org.springframework:spring-context-indexer")
compile("org.springframework.boot:spring-boot-starter-data-mongodb-reactive")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.0.RELEASE")
testCompile("org.springframework.boot:spring-boot-starter-test")
runtime("de.flapdoodle.embed:de.flapdoodle.embed.mongo")
compile("io.projectreactor:reactor-kotlin-extensions:1.0.0.M2")
testCompile("io.projectreactor.addons:reactor-test")
compile("com.fasterxml.jackson.module:jackson-module-kotlin")
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
}