From 242b6daf5cee98350dc3dec78849746833be8f64 Mon Sep 17 00:00:00 2001 From: Jendrik Johannes Date: Mon, 10 Jul 2017 11:50:35 +0200 Subject: [PATCH] Ignore missing classes If we do not do this, we get a class loading error if we add a new class to a public interface. This is because japicmp tries to load the class in the old classpath as well for comparison. --- .../groovy/org/gradle/BinaryBreakageIntegrationTest.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/distributions/src/integTest/groovy/org/gradle/BinaryBreakageIntegrationTest.groovy b/subprojects/distributions/src/integTest/groovy/org/gradle/BinaryBreakageIntegrationTest.groovy index e634eb1a35dc8..f0308f260edcd 100644 --- a/subprojects/distributions/src/integTest/groovy/org/gradle/BinaryBreakageIntegrationTest.groovy +++ b/subprojects/distributions/src/integTest/groovy/org/gradle/BinaryBreakageIntegrationTest.groovy @@ -118,6 +118,7 @@ class BinaryBreakageIntegrationTest extends AbstractIntegrationSpec{ options.classPathMode = JarArchiveComparatorOptions.ClassPathMode.TWO_SEPARATE_CLASSPATHS options.newClassPath = currentJars.external*.absolutePath as List options.oldClassPath = oldJars.external*.absolutePath as List + options.ignoreMissingClasses.ignoreAllMissingClasses = true def oldGradleJars = oldJars.internal.collect { new JApiCmpArchive(it, previous.version.version) } def currentGradleJars = currentJars.internal.collect { new JApiCmpArchive(it, buildContext.version.version) }