forked from sdeleuze/spring-kotlin-functional
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
64 lines (51 loc) · 1.64 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.plugin.KotlinPluginWrapper
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
id("org.jetbrains.kotlin.jvm") version "1.2.41"
id ("com.github.johnrengelman.shadow") version "2.0.4"
id("io.spring.dependency-management") version "1.0.5.RELEASE"
}
// Tweak to be sure to have compiler and dependency versions the same
extra["kotlin.version"] = plugins.getPlugin(KotlinPluginWrapper::class.java).kotlinPluginVersion
repositories {
mavenCentral()
}
application {
mainClassName = "functional.ApplicationKt"
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
}
val test by tasks.getting(Test::class) {
useJUnitPlatform()
}
dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:2.0.2.RELEASE")
}
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
compile("org.springframework:spring-webflux")
compile("org.springframework:spring-test")
compile("org.springframework:spring-context") {
exclude(module = "spring-aop")
}
compile("io.projectreactor.ipc:reactor-netty")
compile("com.samskivert:jmustache")
compile("org.slf4j:slf4j-api")
compile("ch.qos.logback:logback-classic")
compile("com.fasterxml.jackson.module:jackson-module-kotlin")
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
testCompile("io.projectreactor:reactor-test")
testCompile("org.assertj:assertj-core")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}