Avoid needless refreshes of the render jar cache
When there are no render jars generated as part of a build,
then there is no need to refresh the render jar cache.
@@ -143,6 +143,9 @@ public class RenderJarCache {
RenderResolveOutputGroupProvider.RESOLVE_OUTPUT_GROUP::contains)
.stream()
.collect(ImmutableList.toImmutableList());
+ if (renderJars.isEmpty()) {
+ return;
+ }
artifactCache.putAll(renderJars, context, false);
}
