-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·67 lines (56 loc) · 1.35 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
plugins {
id 'org.springframework.boot' version '2.2.6.RELEASE'
id 'java'
id 'jacoco'
id 'com.github.spotbugs' version '3.0.0'
id 'com.novoda.static-analysis' version '1.2'
}
apply plugin: 'io.spring.dependency-management'
group = 'com.penroz.kafka'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '13'
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/snapshot' }
maven { url 'https://repo.spring.io/milestone' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-json'
implementation 'org.springframework.kafka:spring-kafka'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
test {
exclude '**/*Integration*'
}
test.finalizedBy(jacocoTestReport, jacocoTestCoverageVerification)
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.6
}
}
}
}
task itest(type: Test) {
description = 'Runs the integration tests'
group = 'verification'
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath
outputs.upToDateWhen { false }
include '**/*Integration*'
testLogging.showStandardStreams = true
}
staticAnalysis {
penalty {
maxErrors = 0
maxWarnings = 0
}
spotbugs {
toolVersion = '4.0.0-beta1'
htmlReportEnabled = true
}
}