Add 'jar remap in hierarchy' option to Gradle preferences page.