This repository was archived by the owner on Sep 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathbuild.gradle
More file actions
87 lines (61 loc) · 1.72 KB
/
build.gradle
File metadata and controls
87 lines (61 loc) · 1.72 KB
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
// Copyright (C) king.com Ltd 2015
// https://github.com/king/king-http-client
// Author: Magnus Gustafsson
// License: Apache 2.0, https://raw.github.com/king/king-http-client/LICENSE-APACHE
plugins {
id 'java-library'
id("net.ltgt.errorprone") version "3.0.1"
}
ext {
nettyVersion = "4.1.49.Final"
errorProneCoreVersion = "2.21.1"
mockitoVersion = '3.3.3'
assertjVersion = '3.13.2'
junitVersion = '5.6.2'
}
allprojects {
apply plugin: 'java'
apply plugin: "net.ltgt.errorprone"
apply plugin: 'jacoco'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
plugins.withType(JavaPlugin) {
dependencies {
implementation 'org.slf4j:slf4j-api:1.7.7'
testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion"
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoVersion"
testImplementation "org.assertj:assertj-core:$assertjVersion"
errorprone("com.google.errorprone:error_prone_core:$errorProneCoreVersion")
errorproneJavac("com.google.errorprone:javac:9+181-r4173-1")
}
tasks.withType(Test) {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.errorprone.errorproneArgs.add('-Xep:FutureReturnValueIgnored:OFF')
options.errorprone.errorproneArgs.add('-Xep:StringSplitter:OFF')
options.errorprone.errorproneArgs.add('-Xep:ImmutableEnumChecker:OFF')
}
test {
testLogging {
events "failed"
exceptionFormat "full"
}
finalizedBy jacocoTestReport
}
}
jacocoTestReport {
reports {
xml.required = true
csv.required = false
html.required = true
xml.destination = file("${buildDir}/reports/jacoco/report.xml")
}
}
jacocoTestReport {
dependsOn test
}
}