-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (46 loc) · 1.41 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
plugins {
id 'org.springframework.boot' version '2.1.7.RELEASE'
id 'java'
id "com.moowork.node" version "1.3.1"
}
apply plugin: 'io.spring.dependency-management'
group = 'project.school'
version = project.findProperty('version').toString()
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// compile 'org.springframework.boot:spring-boot-starter-security'
// compile 'org.springframework.security:spring-security-cas'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.3.2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
node {
version = '12.4.0'
npmVersion = '6.9.0'
nodeModulesDir = file("./")
download = true
}
task webpack(type: NodeTask, dependsOn: ["npmInstall"]) {
script = file('node_modules/webpack-dev-server/bin/webpack-dev-server.js')
}
task reactBuild(type: NodeTask, dependsOn: ["npmInstall"]) {
script = file('node_modules/webpack/bin/webpack.js')
args = ["--config", "webpack.prod.js"]
}
bootJar {
launchScript()
}
tasks.bootJar.dependsOn(reactBuild)