Collection<String> (CompileContext context, ModuleChunk chunk) { //groovy_rt.jar // IMPORTANT! must be the first in classpath final Set<String> cp = new LinkedHashSet<>(GroovyBuilder.getGroovyRtRoots(false)); for (File file : ProjectPaths.getCompilationClasspathFiles(chunk, chunk.containsTests(), false, false)) { cp.add(FileUtil.toCanonicalPath(file.getPath())); } for (GroovyBuilderExtension extension : JpsServiceManager.getInstance().getExtensions(GroovyBuilderExtension.class)) { cp.addAll(extension.getCompilationClassPath(context, chunk)); } return cp; }