compileScriptResult

fun RawScript<SourceCode>.compileScriptResult(libraries: Array<out String>): CompiledScript(source)

Compile a Source script with additional configuration and return the compilation result.

Return

the compiled script result

Parameters

libraries

file names of additional libraries to use during compilation


fun compileScriptResult(identifier: Identifier, source: SourceCode, configBuilder: ScriptCompilationConfiguration.Builder.() -> Unit): CompiledScript(source)

Compile a source script and ensure the process was successful.

Return

the compilation result

Parameters

identifier

the script's name

source

source code to compile

configBuilder

additional configuration

Throws

if compilation fails