-
Notifications
You must be signed in to change notification settings - Fork 467
/
Copy pathbuild.gradle
48 lines (42 loc) · 1.62 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
plugins {
id 'java-library'
}
ext.artifactId = project.artifactIdTestLib
version = rootProject.spotlessChangelog.versionNext
apply from: rootProject.file('gradle/java-setup.gradle')
dependencies {
api projects.lib
api files(projects.lib.dependencyProject.sourceSets.sortPom.output.classesDirs)
api "com.diffplug.durian:durian-core:${VER_DURIAN}"
api "com.diffplug.durian:durian-testlib:${VER_DURIAN}"
api "org.junit.jupiter:junit-jupiter:${VER_JUNIT}"
api "org.assertj:assertj-core:${VER_ASSERTJ}"
api "org.mockito:mockito-core:$VER_MOCKITO"
runtimeOnly "org.junit.platform:junit-platform-launcher"
implementation "com.diffplug.durian:durian-io:${VER_DURIAN}"
implementation "com.diffplug.durian:durian-collect:${VER_DURIAN}"
implementation "org.eclipse.jgit:org.eclipse.jgit:${VER_JGIT}"
implementation 'com.vladsch.flexmark:flexmark-all:0.64.8'
implementation 'com.vladsch.flexmark:flexmark-util-data:0.64.8'
implementation gradleTestKit()
}
// we'll hold the testlib to a low standard (prize brevity)
spotbugs {
// LOW|MEDIUM|DEFAULT|HIGH (low = sensitive to even minor mistakes).
reportLevel = com.github.spotbugs.snom.Confidence.valueOf('HIGH')
}
apply from: rootProject.file('gradle/special-tests.gradle')
tasks.withType(Test).configureEach {
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16)) {
// for Antlr4FormatterStepTest, KtfmtStepTest, and KtLintStepTest
def args = [
'--add-opens=java.base/java.lang=ALL-UNNAMED',
'--add-opens=java.base/java.util=ALL-UNNAMED',
]
jvmArgs args
}
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('Xwerror', '-quiet')
}