Close SassCompiler after use
@@ -65,7 +65,7 @@ public class SassCompile extends SourceTask {
@TaskAction
public void compileSass() throws IOException {
- SassCompiler compiler = SassCompilerFactory.bundled();
+ try (SassCompiler compiler = SassCompilerFactory.bundled()) {
compiler.setOutputStyle(getOutputStyle().getOrNull());
compiler.setGenerateSourceMaps(sourceMapEnabled.getOrElse(true));
@@ -161,6 +161,7 @@ public class SassCompile extends SourceTask {
}
});
}
+ }
/**
* Custom import functions.
