forked from testcontainers/testcontainers-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
japicmp.gradle
36 lines (30 loc) · 1.06 KB
/
japicmp.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
configurations {
baseline
}
dependencies {
baseline "org.testcontainers:${project.name}:${project['testcontainers.version']}", {
exclude group: "*", module: "*"
}
}
tasks.japicmp {
dependsOn(tasks.shadowJar)
// Disable if baseline dependencies cannot be resolved - such as when developing a new module that doesn't
// have an existing published version.
enabled = ! configurations.baseline.copy().resolvedConfiguration.lenientConfiguration.getFiles().empty
oldClasspath.from(configurations.baseline)
newClasspath.from(shadowJar.outputs.files)
ignoreMissingClasses = true
accessModifier = "protected"
failOnModification = true
failOnSourceIncompatibility = true
onlyBinaryIncompatibleModified = true
htmlOutputFile = file("$buildDir/reports/japi.html")
packageExcludes = [
"org.testcontainers.shaded.*",
]
}
// do not run on Windows by default
// TODO investigate zip issue on Windows
if (!org.gradle.internal.os.OperatingSystem.current().isWindows()) {
project.tasks.check.dependsOn(japicmp)
}