File tree Expand file tree Collapse file tree 1 file changed +14
-18
lines changed
subprojects/zap-clientapi Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id " maven-publish"
3
3
id " signing"
4
- id " me.champeau.gradle.japicmp" version " 0.2.6 "
4
+ id " me.champeau.gradle.japicmp" version " 0.2.9 "
5
5
id " org.owasp.dependencycheck" version " 3.2.1"
6
6
}
7
7
@@ -25,29 +25,25 @@ jar {
25
25
}
26
26
}
27
27
28
- configurations {
29
- japicmpBaseline
30
- }
31
-
32
- dependencies {
33
- japicmpBaseline (" ${ project.group} :${ project.name} :$versionBC " ) { force = true }
34
- }
35
-
36
- dependencyCheck {
37
- skipConfigurations + = " japicmpBaseline"
28
+ File clientapiJar (version ) {
29
+ def oldGroup = group
30
+ try {
31
+ // https://discuss.gradle.org/t/is-the-default-configuration-leaking-into-independent-configurations/2088/6
32
+ group = " virtual_group_for_japicmp"
33
+ def conf = configurations. detachedConfiguration(dependencies. create(" $oldGroup :$name :$version " ))
34
+ conf. transitive = false
35
+ return conf. singleFile
36
+ } finally {
37
+ group = oldGroup
38
+ }
38
39
}
39
40
40
41
task japicmp (type : me.champeau.gradle.japicmp.JapicmpTask ) {
41
42
group ' verification'
42
43
description " Checks artifacts' binary compatibility with latest (released) version '$versionBC '."
43
- // XXX Don't run by default with Java 9+, does not work (needs the module java.xml.bind).
44
- if (JavaVersion . current() == JavaVersion . VERSION_1_8 ) {
45
- check. dependsOn ' japicmp'
46
- }
47
- inputs. files(jar)
48
44
49
- oldClasspath = configurations . japicmpBaseline
50
- newClasspath = configurations . runtimeClasspath + files(jar )
45
+ oldClasspath = files(clientapiJar(versionBC))
46
+ newClasspath = files(tasks . named( JavaPlugin . JAR_TASK_NAME ) . map { it . archivePath } )
51
47
onlyBinaryIncompatibleModified = true
52
48
failOnModification = true
53
49
ignoreMissingClasses = true
You can’t perform that action at this time.
0 commit comments