forked from mixitconf/mixit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
89 lines (74 loc) · 2.49 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
import com.moowork.gradle.gulp.GulpTask
import com.moowork.gradle.node.yarn.YarnInstallTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenCentral()
maven("https://repo.spring.io/milestone")
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.M5")
classpath("org.junit.platform:junit-platform-gradle-plugin:1.0.0")
}
}
plugins {
val kotlinVersion = "1.1.51"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
id("com.moowork.gulp") version "1.2.0"
id("io.spring.dependency-management") version "1.0.3.RELEASE"
}
apply {
plugin("org.springframework.boot")
plugin("org.junit.platform.gradle.plugin")
}
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://repo.spring.io/milestone")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
node {
version = "6.9.4"
download = true
}
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")
runtime("de.flapdoodle.embed:de.flapdoodle.embed.mongo")
compile("com.samskivert:jmustache:1.13")
compile("com.atlassian.commonmark:commonmark:0.9.0")
compile("com.atlassian.commonmark:commonmark-ext-autolink:0.9.0")
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "junit")
}
testCompile("org.junit.jupiter:junit-jupiter-api")
testRuntime("org.junit.jupiter:junit-jupiter-engine")
testCompile("io.projectreactor:reactor-test")
}
task<GulpTask>("gulpBuild") {
dependsOn(YarnInstallTask.NAME)
inputs.dir("src/main/sass")
inputs.dir("src/main/ts")
inputs.dir("src/main/images")
outputs.dir("build/resources/main/static")
setArgs(listOf("build"))
}
task<GulpTask>("gulpClean") {
dependsOn(YarnInstallTask.NAME)
inputs.dir("build/.tmp")
outputs.dir("build/resources/main/static")
setArgs(listOf("clean"))
}
tasks.getByName("processResources").dependsOn("gulpBuild")
tasks.getByName("clean").dependsOn("gulpClean")