-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
62 lines (51 loc) · 1.84 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
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.run.BootRun
val kotlinVersion: String by extra
val springBootVersion: String by extra
buildscript {
val kotlinVersion by extra { "1.2.0" }
val springBootVersion by extra { "2.0.0.M7" }
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion")
}
repositories {
mavenCentral()
maven {
url = uri("https://repo.spring.io/milestone")
}
}
}
plugins {
val kotlinVersion = "1.2.0"
id("org.springframework.boot").version("1.5.9.RELEASE")
id("io.spring.dependency-management").version("1.0.3.RELEASE")
kotlin("plugin.spring").version(kotlinVersion)
kotlin("jvm").version(kotlinVersion)
}
repositories {
mavenCentral()
maven {
url = uri("https://repo.spring.io/milestone")
}
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
compile("org.springframework.boot:spring-boot-starter-actuator:$springBootVersion")
compile("org.springframework.boot:spring-boot-starter-webflux:$springBootVersion")
testCompile("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
testCompile("io.projectreactor:reactor-test")
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
withType<BootRun> {
// Ensures IntelliJ can live reload resource files
val sourceSets = the<JavaPluginConvention>().sourceSets
sourceResources(sourceSets["main"])
}
}