This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
66 lines (53 loc) · 1.71 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
60
61
62
63
64
65
66
buildscript {
repositories {
mavenCentral()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: spring_boot_version
classpath group: 'io.spring.gradle', name: 'propdeps-plugin', version: prop_deps_version
classpath group: 'com.moowork.gradle', name: 'gradle-node-plugin', version: gradle_node_version
}
}
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'war'
apply plugin: 'idea'
apply plugin: 'propdeps'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
apply plugin: 'com.moowork.node'
war {
baseName = 'toh'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service';
termsOfServiceAgree = 'yes'
}
configurations {
providedRuntime
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web'
compile group: 'javax.inject', name: 'javax.inject', version: javax_inject_version
annotationProcessor group: 'org.springframework.boot', name: 'spring-boot-configuration-processor'
providedRuntime group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat'
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test'
}
task installNodeModules(type: Exec) {
workingDir './'
commandLine 'npm', 'install'
}
task jsBuild(type: NpmTask) {
args = ['run', 'buildprod']
}
compileJava.dependsOn(installNodeModules, jsBuild)
defaultTasks 'clean', 'bootRun'