diff --git a/gradle-twirl/src/main/java/play/twirl/gradle/TwirlCompile.java b/gradle-twirl/src/main/java/play/twirl/gradle/TwirlCompile.java index 5fb44be2..1e84edb3 100644 --- a/gradle-twirl/src/main/java/play/twirl/gradle/TwirlCompile.java +++ b/gradle-twirl/src/main/java/play/twirl/gradle/TwirlCompile.java @@ -72,7 +72,7 @@ void compile(InputChanges changes) { if (change.getFileType() == FileType.DIRECTORY) continue; WorkQueue workQueue = getWorkerExecutor() - .classLoaderIsolation(spec -> spec.getClasspath().from(getTwirlClasspath())); + .processIsolation(spec -> spec.getClasspath().from(getTwirlClasspath())); Map templateFormats = getTemplateFormats().get(); RelativeFile sourceFile =