-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (89 loc) · 2.88 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
102
103
104
105
106
107
108
109
plugins {
id 'org.springframework.boot' version '2.3.6.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
id 'com.adarshr.test-logger' version '2.1.1'
id 'jacoco'
id 'org.sonarqube' version '3.0'
}
group = 'io.henriquels25'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '15'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "Hoxton.SR9")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb-reactive'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'javax.validation:validation-api:2.0.1.Final'
implementation 'org.hibernate.validator:hibernate-validator:6.1.6.Final'
implementation 'org.hibernate.validator:hibernate-validator-annotation-processor:6.1.6.Final'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'org.mapstruct:mapstruct:1.4.1.Final'
implementation 'org.springframework.kafka:spring-kafka:2.6.3'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.4.1.Final'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo:2.2.0'
testImplementation('org.springframework.cloud:spring-cloud-starter-contract-stub-runner') {
exclude group: 'com.github.tomakehurst', module: 'wiremock-standalone'
}
testImplementation 'com.github.tomakehurst:wiremock-jre8-standalone:2.27.2'
testImplementation 'org.springframework.kafka:spring-kafka-test:2.6.3'
testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.21.0'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
test {
useJUnitPlatform()
}
task unitTest(type: Test) {
useJUnitPlatform {
excludeTags 'integration', 'acceptance'
}
}
task integrationTest(type: Test) {
useJUnitPlatform {
includeTags 'integration'
}
}
task acceptanceTest(type: Test) {
useJUnitPlatform {
includeTags 'acceptance'
}
}
testlogger {
showSimpleNames true
}
jacocoTestReport {
sourceSets sourceSets.main
getExecutionData().setFrom(fileTree(buildDir).include("/jacoco/*.exec"))
reports {
xml.enabled true
}
}
jacoco {
toolVersion = "0.8.6"
}
sonarqube {
properties {
property "sonar.projectKey", "henriquels25_fantasy-sport-api"
property "sonar.organization", "henriquels"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.exclusions", "**/FantasySportApiApplication.java"
}
}