use of org.gradle.play.internal.javascript.DefaultJavaScriptCompileSpec in project gradle by gradle.
the class JavaScriptMinify method compileJavaScriptSources.
@TaskAction
void compileJavaScriptSources() {
StaleClassCleaner cleaner = new SimpleStaleClassCleaner(getOutputs());
cleaner.setDestinationDir(getDestinationDir());
cleaner.execute();
MinifyFileVisitor visitor = new MinifyFileVisitor();
getSource().visit(visitor);
JavaScriptCompileSpec spec = new DefaultJavaScriptCompileSpec(visitor.relativeFiles, getDestinationDir(), getForkOptions());
getCompiler().execute(spec);
}
Aggregations