forked from reactor/projectreactor.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (62 loc) · 2.12 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
import com.github.jengelman.gradle.plugins.shadow.ShadowExtension
import com.github.robfletcher.compass.CompassExtension
import java.util.concurrent.TimeUnit
configurations.all {
it.resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
}
buildscript {
repositories {
mavenLocal()
jcenter()
maven { setUrl("http://dl.bintray.com/robfletcher/gradle-plugins") }
maven { setUrl("https://repo.spring.io/release") }
maven { setUrl("https://repo.spring.io/snapshot") }
mavenCentral()
}
dependencies {
classpath("com.github.jengelman.gradle.plugins:shadow:1.2.4")
classpath("com.github.robfletcher:compass-gradle-plugin:2.0.6")
classpath("io.projectreactor.ipc:reactor-netty:0.6.1.BUILD-SNAPSHOT")
}
}
apply {
plugin("java")
plugin("com.github.robfletcher.compass")
plugin("application")
plugin("com.github.johnrengelman.shadow")
}
group = "io.projectreactor"
version = "1.0.0.BUILD-SNAPSHOT"
configure<JavaPluginConvention> {
setSourceCompatibility(1.8)
setTargetCompatibility(1.8)
}
configure<ApplicationPluginConvention> {
mainClassName = "io.projectreactor.Application"
}
configure<ShadowExtension> {
version = null
}
configure<CompassExtension> {
sassDir = file("$projectDir/src/main/sass")
cssDir = file("$buildDir/resources/main/static/assets/css")
}
repositories {
mavenLocal()
mavenCentral()
maven { setUrl("http://repo.spring.io/release") }
maven { setUrl("http://repo.spring.io/milestone") }
maven { setUrl("https://repo.spring.io/snapshot") }
}
dependencies {
compile("org.springframework:spring-core:5.0.0.BUILD-SNAPSHOT")
compile("io.projectreactor.ipc:reactor-netty:0.6.2.RELEASE")
compile("io.projectreactor:reactor-core:3.0.5.RELEASE")
compile("org.yaml:snakeyaml:1.17")
runtime("commons-logging:commons-logging:1.2")
runtime("org.slf4j:slf4j-api:1.7.21")
runtime("ch.qos.logback:logback-classic:1.1.7")
}
val processResources = tasks.getByName("processResources")
val compassCompile = tasks.getByName("compassCompile")
processResources.dependsOn(compassCompile)