Refactor JarPlugin