forked from mixitconf/mixit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
88 lines (74 loc) · 2.85 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
import com.moowork.gradle.gulp.GulpTask
import com.moowork.gradle.node.yarn.YarnInstallTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.2.40"
val nodePluginVersion = "1.1.1"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
id("org.jetbrains.kotlin.kapt") version kotlinVersion
id("com.moowork.node") version nodePluginVersion
id("com.moowork.gulp") version nodePluginVersion
id("org.springframework.boot") version "2.0.1.RELEASE"
id("io.spring.dependency-management") version "1.0.4.RELEASE"
}
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
val test by tasks.getting(Test::class) {
useJUnitPlatform()
}
node {
version = "9.2.0"
yarnVersion = "1.3.2"
download = true
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
compile("com.fasterxml.jackson.module:jackson-module-kotlin")
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-mail")
compile("org.springframework.boot:spring-boot-starter-data-mongodb-reactive")
compile("org.springframework.boot:spring-boot-devtools")
kapt("org.springframework.boot:spring-boot-configuration-processor")
runtime("de.flapdoodle.embed:de.flapdoodle.embed.mongo")
compile("com.samskivert:jmustache")
compile("com.atlassian.commonmark:commonmark:0.9.0")
compile("com.atlassian.commonmark:commonmark-ext-autolink:0.9.0")
compile("com.google.api-client:google-api-client:1.23.0")
compile("com.google.apis:google-api-services-gmail:v1-rev81-1.23.0")
compile("com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20171016.1")
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "junit")
}
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("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")
args = listOf("build")
}
task<GulpTask>("gulpClean") {
dependsOn(YarnInstallTask.NAME)
inputs.dir("build/.tmp")
outputs.dir("build/resources/main/static")
args = listOf("clean")
}
tasks.getByName("processResources").dependsOn("gulpBuild")
tasks.getByName("clean").dependsOn("gulpClean")