-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
96 lines (82 loc) · 3.37 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import org.gradle.testing.jacoco.tasks.JacocoReport
import org.jetbrains.kotlin.noarg.gradle.NoArgExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
val kotlinVersion = "1.1.0"
val dependencyManagement = "1.0.0.RELEASE"
val springBootVersion = "2.0.0.BUILD-SNAPSHOT"
extra["kotlinVersion"] = kotlinVersion
extra["springBootVersion"] = springBootVersion
repositories {
jcenter()
mavenCentral()
maven { setUrl("https://plugins.gradle.org/m2/") }
maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap-1.1") }
maven { setUrl("https://repo.spring.io/snapshot") }
maven { setUrl("https://repo.spring.io/milestone") }
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath("org.jetbrains.kotlin:kotlin-noarg:$kotlinVersion")
classpath("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion")
classpath("io.spring.gradle:dependency-management-plugin:$dependencyManagement")
classpath("org.jfrog.buildinfo:build-info-extractor-gradle:latest.release")
}
}
apply {
plugin("idea")
plugin("kotlin")
plugin("kotlin-noarg")
plugin("kotlin-spring")
plugin("org.springframework.boot")
plugin("io.spring.dependency-management")
plugin("jacoco")
plugin("com.jfrog.artifactory")
}
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
maven { setUrl("https://dl.bintray.com/jetbrains/spek") }
maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap-1.1") }
maven { setUrl("https://repo.spring.io/milestone") }
maven { setUrl("https://repo.spring.io/snapshot") }
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
configure<NoArgExtension> {
annotation("org.springframework.data.mongodb.core.mapping.Document")
}
(getTasksByName("jacocoTestReport", false).first() as JacocoReport).apply {
reports {
it.xml.isEnabled = true
}
}
val kotlinVersion = extra["kotlinVersion"] as String
val springVersion = "5.0.0.BUILD-SNAPSHOT"
val springBootVersion = extra["springBootVersion"] as String
val springDataVersion = "2.0.0.BUILD-SNAPSHOT"
val jacksonVersion = "2.8.5"
val reactorVersion = "3.0.5.RELEASE"
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
compile("org.springframework.boot:spring-boot-starter-webflux") {
exclude(module = "hibernate-validator")
}
compile("io.projectreactor:reactor-kotlin:1.0.0.BUILD-SNAPSHOT")
compile("org.springframework.boot:spring-boot-starter-data-mongodb-reactive")
compile("com.atlassian.commonmark:commonmark:0.8.0")
compile("io.projectreactor:reactor-core:$reactorVersion")
compile("io.projectreactor.ipc:reactor-netty:0.6.0.RELEASE")
compile("com.fasterxml.jackson.module:jackson-module-kotlin")
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
compile("commons-logging:commons-logging:1.2")
compileOnly("org.springframework.boot:spring-boot-configuration-processor")
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("io.projectreactor.addons:reactor-test:$reactorVersion")
}
tasks.getByName("processResources")