Skip to content

Commit

Permalink
Ignore missing classes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jjohannes committed Jul 10, 2017
1 parent bc370f3 commit 242b6da
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 242b6da

Please sign in to comment.