1
- buildscript {
2
- repositories { jcenter() }
3
- dependencies {
4
- classpath " org.springframework.boot:spring-boot-gradle-plugin:1.4.0.RELEASE"
5
- }
1
+ plugins {
2
+ id " java"
3
+ id " idea"
4
+ id " org.springframework.boot" version " 1.5.7.RELEASE"
6
5
}
7
6
8
- apply plugin : ' java'
9
- apply plugin : ' idea'
10
- apply plugin : ' spring-boot'
11
-
12
7
jar {
13
- baseName = ' server-side-react-spring-boot'
14
- version = ' 0.0.1'
8
+ baseName = " server-side-react-spring-boot"
9
+ version = " 0.0.1"
15
10
}
16
11
17
12
sourceCompatibility = JavaVersion . VERSION_1_8
@@ -20,25 +15,26 @@ targetCompatibility = JavaVersion.VERSION_1_8
20
15
repositories { jcenter() }
21
16
22
17
dependencies {
23
- compile ' org.springframework.boot:spring-boot-starter-actuator' ,
24
- ' org.springframework.boot:spring-boot-starter-mustache' ,
25
- ' org.springframework.boot:spring-boot-starter-data-rest' ,
26
- ' org.springframework.boot:spring-boot-starter-data-jpa' ,
27
- ' org.springframework.boot:spring-boot-devtools' ,
28
- ' org.projectlombok:lombok'
29
- runtime ' com.h2database:h2'
30
- testCompile ' org.springframework.boot:spring-boot-starter-test'
18
+ compile " org.springframework.boot:spring-boot-starter-actuator" ,
19
+ " org.springframework.boot:spring-boot-starter-mustache" ,
20
+ " org.springframework.boot:spring-boot-starter-data-rest" ,
21
+ " org.springframework.boot:spring-boot-starter-data-jpa" ,
22
+ " org.springframework.boot:spring-boot-devtools" ,
23
+ " org.projectlombok:lombok"
24
+ runtime " com.h2database:h2"
25
+ testCompile " org.springframework.boot:spring-boot-starter-test"
31
26
}
32
27
33
28
task ui (type : Exec ) {
34
- workingDir ' . /ui'
29
+ workingDir " $p rojectDir /ui"
35
30
commandLine " npm" , " run" , " build"
36
31
}
37
32
38
- build . shouldRunAfter ui
33
+ assemble . shouldRunAfter ui
39
34
40
35
task wrapper (type : Wrapper ) {
41
- gradleVersion = ' 3.0'
36
+ gradleVersion = " 4.2.1"
37
+ distributionType = " ALL"
42
38
}
43
39
44
40
// bash build/libs/*.jar
0 commit comments