GroovyWorker

mill.groovylib.worker.api.GroovyWorker
trait GroovyWorker

Runs the actual compilation.

Supports 3-stage compilation for Java <-> Groovy

  1. compile Java stubs
  2. compile Java sources (done externally)
  3. compile Groovy sources

Attributes

Source
GroovyWorker.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def compile(sourceFiles: Seq[Path], classpath: Seq[Path], outputDir: Path, config: GroovyCompilerConfiguration)(implicit ctx: TaskCtx): Result[CompilationResult]

Compiles the Groovy sources. In a mixed setup this method assumes that the Java stubs are already present in the outputDir.

Compiles the Groovy sources. In a mixed setup this method assumes that the Java stubs are already present in the outputDir.

Attributes

Source
GroovyWorker.scala
def compileGroovyStubs(sourceFiles: Seq[Path], classpath: Seq[Path], outputDir: Path, config: GroovyCompilerConfiguration)(implicit ctx: TaskCtx): Result[Unit]

In a mixed setup this will compile the Groovy sources to Java stubs.

In a mixed setup this will compile the Groovy sources to Java stubs.

Attributes

Source
GroovyWorker.scala