boolean (String name) { if (name.startsWith("groovyjarjar")) { return true; } if (name.startsWith("org.codehaus.groovy.")) { String tail = name.substring("org.codehaus.groovy.".length()); if (tail.startsWith("ast") || tail.startsWith("classgen") || tail.startsWith("tools.javac") || tail.startsWith("antlr") || tail.startsWith("vmplugin") || tail.startsWith("reflection") || tail.startsWith("control")) { return true; } if (tail.startsWith("runtime") && name.contains("GroovyMethods")) { return true; } } return false; }