-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
71 lines (61 loc) · 1.51 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
67
68
69
70
71
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.1.9.RELEASE"
}
}
plugins {
id "java"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
java {
sourceCompatibility(JavaVersion.VERSION_11)
targetCompatibility(JavaVersion.VERSION_11)
}
repositories {
mavenCentral()
}
defaultTasks 'clean', 'build'
sourceSets {
test {
java {
srcDirs += ['src/integrationtest/java']
}
}
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "short"
}
}
jacoco {
toolVersion = '0.8.2'
reportsDir = file("${buildDir}/reports/jacoco")
}
dependencies {
implementation(
'org.springframework.boot:spring-boot-starter-web:2.2.0.RELEASE',
'org.springframework.data:spring-data-jpa:2.2.0.RELEASE',
'org.springframework.boot:spring-boot-starter-actuator'
)
testImplementation(
'junit:junit:4.12',
'org.springframework.boot:spring-boot-starter-test',
'org.mockito:mockito-core:2.23.4',
'org.hamcrest:hamcrest-all:1.3',
'org.json:json:20180813',
'io.cucumber:cucumber-junit:4.2.0',
'io.cucumber:cucumber-java8:4.2.0'
)
}
wrapper {
gradleVersion = '6.1'
distributionType = Wrapper.DistributionType.ALL
}