-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (47 loc) · 1.28 KB
/
build.gradle
File metadata and controls
59 lines (47 loc) · 1.28 KB
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
buildscript {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.4.0.RELEASE"
classpath "com.moowork.gradle:gradle-node-plugin:0.13"
}
}
group 'com.mbpolan.pixel2d'
version '1.0.0-SNAPSHOT'
apply plugin: 'com.moowork.node'
apply plugin: 'java'
apply plugin: 'spring-boot'
node {
version = '4.4.7'
download = true
}
jar.into('static') {
from('src/main/webapp/dist')
exclude '**/node_modules/**'
}
repositories {
mavenCentral()
}
configurations {
compile.exclude module: 'spring-boot-starter-logging'
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-log4j2'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.7.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task stage {
dependsOn build
}
task npmInstallLocal(type: NpmTask) {
group = 'node'
workingDir = file("${project.projectDir}/src/main/webapp")
args = ['install']
}
//build.dependsOn npmInstallLocal
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}