what exactly went wrong with your efforts before? you might have more luck changing the tasks that are run instead of running a subproject individually.
war files differed because contained SNAPSHOT dependencies differed.
Also, groovy modules seem to produce class files with “entries are of identical size but have different content” for (as of yet) unknown reasons. Which is quite strange.
I thought you meant what went wrong during the original compare.
With the above “projectDir project.projectDir” configuration the ‘compareGradleBuilds’ task would still execute a complete build regardless of the subproject I started the task in. ‘:subproject1:compareGradleBuilds’ didn’t work either.
It just tried to do another full compare but I quit it.
Meaning: It did work as expected if the expected behavior is to always perform a full compare. But I expected it to behave differently so it “didn’t work” as I expected.