/
build.gradle.kts
87 lines (72 loc) · 2.46 KB
/
build.gradle.kts
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
plugins {
id("gradlebuild.distribution.api-java")
id("gradlebuild.jmh")
}
description = "A set of generic services and utilities."
gradlebuildJava.usedInWorkers()
/**
* Use Java 8 compatibility for Unit tests, so we can test Java 8 features as well
*/
tasks.named<JavaCompile>("compileTestJava") {
options.release = 8
}
/**
* Use Java 8 compatibility for JMH benchmarks
*/
tasks.named<JavaCompile>("jmhCompileGeneratedClasses") {
options.release = 8
}
moduleIdentity.createBuildReceipt()
errorprone {
disabledChecks.addAll(
"DefaultCharset", // 4 occurrences
"EmptyBlockTag", // 2 occurrences
"EscapedEntity", // 1 occurrences
"FutureReturnValueIgnored", // 1 occurrences
"ImmutableEnumChecker", // 1 occurrences
"InlineFormatString", // 2 occurrences
"InlineMeSuggester", // 1 occurrences
"JavaLangClash", // 1 occurrences
"MissingCasesInEnumSwitch", // 1 occurrences
"MixedMutabilityReturnType", // 3 occurrences
"NonAtomicVolatileUpdate", // 2 occurrences
"ReturnValueIgnored", // 1 occurrences
"StringCaseLocaleUsage", // 8 occurrences
"StringSplitter", // 3 occurrences
"ThreadLocalUsage", // 4 occurrences
"TypeParameterUnusedInFormals", // 5 occurrences
"URLEqualsHashCode", // 1 occurrences
"UnsynchronizedOverridesSynchronized", // 2 occurrences
"UnusedMethod", // 2 occurrences
)
}
dependencies {
api(projects.concurrent)
api(projects.javaLanguageExtensions)
api(projects.fileTemp)
api(project(":hashing"))
api(project(":build-operations"))
api(libs.inject)
api(libs.jsr305)
api(libs.guava)
implementation(projects.io)
implementation(projects.time)
implementation(libs.asm)
implementation(libs.commonsIo)
implementation(libs.commonsLang)
implementation(libs.slf4jApi)
integTestImplementation(project(":logging"))
testFixturesApi(project(":hashing"))
testFixturesImplementation(libs.guava)
testImplementation(testFixtures(project(":core")))
testImplementation(libs.xerces)
integTestDistributionRuntimeOnly(project(":distributions-core"))
jmh(platform(project(":distributions-dependencies")))
jmh(libs.bouncycastleProvider)
jmh(libs.guava)
}
packageCycles {
// Needed for the factory methods in the base class
excludePatterns.add("org/gradle/util/GradleVersion**")
}
jmh.includes = listOf("HashingAlgorithmsBenchmark")