-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
85 lines (78 loc) · 2.1 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
import org.asciidoctor.gradle.AsciidoctorTask
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlin_version: String by extra
plugins {
id("org.jetbrains.kotlin.jvm") version "1.2.41"
id("io.spring.dependency-management") version "1.0.5.RELEASE"
id("com.github.johnrengelman.shadow") version "2.0.4" apply false
id("org.asciidoctor.convert") version "1.5.6"
}
apply {
plugin("kotlin")
}
buildscript {
var kotlin_version: String by extra
kotlin_version = "1.2.41"
repositories {
mavenCentral()
}
dependencies {
classpath(kotlin("gradle-plugin", kotlin_version))
}
}
version = "1.0.0.BUILD-SNAPSHOT"
subprojects {
apply {
plugin("io.spring.dependency-management")
plugin("org.jetbrains.kotlin.jvm")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
repositories {
mavenCentral()
maven("https://repo.spring.io/libs-release")
maven("https://repo.spring.io/snapshot")
maven("https://dl.bintray.com/konrad-kaminski/maven")
}
dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:2.0.2.RELEASE") {
bomProperty("spring.version", "5.1.0.BUILD-SNAPSHOT")
bomProperty("reactor-bom.version", "Californium-BUILD-SNAPSHOT")
}
}
dependencies {
val coroutinesVersion = "0.22.5"
val springCoroutineVersion = "0.3.4"
dependency("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
dependency("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$coroutinesVersion")
}
}
}
// See CONTRIBUTING.adoc in order to have Kotlin syntax highlighting
tasks.withType<AsciidoctorTask> {
sourceDir = File("src/docs/asciidoc")
outputDir = File("build/docs")
}
dependencies {
compile(kotlin("stdlib-jdk8", kotlin_version))
}
repositories {
mavenCentral()
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}