Avoid building publications model if jar->gradle remapping is disabled.