forked from OpenClassrooms-Student-Center/JavaPathENProject8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (75 loc) · 2.78 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
plugins {
id 'org.springframework.boot' version '2.5.6' apply false
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: "jacoco"
repositories {
mavenCentral()
google()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter:2.5.6'
implementation('org.springframework.boot:spring-boot-starter-web:2.5.5')
implementation('org.springframework.boot:spring-boot-starter-actuator:2.5.5')
implementation group: 'org.javamoney', name: 'moneta', version: '1.3'
implementation group: 'com.jsoniter', name: 'jsoniter', version: '0.9.23'
//SWAGGER2
implementation 'io.springfox:springfox-swagger2:2.9.2' //doesn't work with the latest version
implementation 'io.springfox:springfox-swagger-ui:2.9.2' //doesn't work with the latest version
//FEIGN
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:3.0.4'
implementation 'org.projectlombok:lombok:1.18.20'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.0-rc2'
implementation 'javax.validation:validation-api:2.0.1.Final'
implementation 'org.springframework.boot:spring-boot-starter-validation:2.5.6'
implementation files("$rootDir/libs/gpsUtil.jar", "$rootDir/libs/RewardCentral.jar", "$rootDir/libs/TripPricer.jar")
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.1.6.RELEASE'
testImplementation "junit:junit:4.+"
//JUNIT 5
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
jacoco {
toolVersion = "0.8.4"
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}
test.finalizedBy jacocoTestReport
check.dependsOn jacocoTestCoverageVerification
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.5
}
}
}
}
task prepareKotlinBuildScriptModel {
}
}