-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
56 lines (48 loc) · 1.56 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.8.RELEASE")
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.projectlombok:lombok:1.16.14')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
// When executing ./gradlew check on the console, I want to see all test
// results in the log.
test {
testLogging {
events "passed", "skipped", "failed"
}
}
}
// We want to ensure that everybody is building this project with the same Gradle version.
// This ensures that we don't have any compatibility issues. To do so, we use the Gradle
// Wrapper.
//
// Run this task in order to create the Gradle Wrapper files located in '/gradle/wrapper' as
// well as the files '/gradlew' and '/gradlew.bat'. Note that these files are also under
// version control. Execute this task only when the Gradle Wrapper version is increased.
//
// To run any Gradle task, don't use Gradle directly, but the generated Gradle Wrapper:
//
// ./gradlew build
// ./graldew test
//
// This ensures that every Gradle task is run with the correct version!
//
// See: https://www.mkyong.com/gradle/how-to-use-gradle-wrapper
task wrapper(type: Wrapper) {
gradleVersion = '4.3'
}