The MergeJavaResources fix creates a new input that is marked with skipWhenEmpty(true). This is normally not a problem, but in situations where the inputs are empty, this will cause the task to be skipped with a NO-SOURCE outcome rather than creating an empty jar. This causes problems for downstream tasks that expect the jar to exist, even if it is empty.