Is it intended that in compare-gradle-builds the absence of a JAR in both builds is considered non-equal?

We have many subprojects and most share more-or-less the same structure which I inject by


. This consists of 6 different JARs per subproject. But a specific subproject doesn’t necessarily have all 6 of them, this is controlled by

onlyIf { ! || !sourceSets.a.resources.empty }

. Now if I do a compare-gradle-builds, I get various red entries because of JARs missing in both builds which essentially is identical and thus should be green, shouldn’t it?

That’s a bug. Raised as GRADLE-2777. fixes this bug