-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
59 lines (50 loc) · 1.93 KB
/
build.gradle
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
group 'com.miklesw.conway'
version '1.0-SNAPSHOT'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.0.4.RELEASE"
classpath "com.moowork.gradle:gradle-node-plugin:1.2.0"
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
task stage(dependsOn: ['build', 'clean'])
build.mustRunAfter clean
compileJava.dependsOn('copyUIResources')
task copyUIResources (dependsOn:[":ui:buildUI"]){
doFirst {
logger.info("Deleting static resources..")
delete 'src/main/resources/public'
}
doLast {
logger.info("Copying static resources..")
copy{
from 'ui/dist'
into 'src/main/resources/public'
}
}
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.0.4.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security', version: '2.0.4.RELEASE'
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.10.0'
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.0.4.RELEASE'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.21.0'
testCompile group: 'com.shazam', name: 'shazamcrest', version: '0.11'
testCompile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-webflux', version: '2.0.4.RELEASE'
testCompile group: 'org.awaitility', name: 'awaitility', version: '3.1.2'
}