Kotlin compiler utility
<dependency>
<groupId>io.github.sullis</groupId>
<artifactId>kotlin-compiler-util</artifactId>
<version>0.0.2</version>
<scope>test</scope>
</dependency>
import io.github.sullis.kotlin.compiler.KotlinCompiler;
import io.github.sullis.kotlin.compiler.KotlinCompiler.CompileResult;
KotlinCompiler compiler = new KotlinCompiler();
CompileResult result = compiler.compileSourceDir(sourceDir);
assertTrue(result.isSuccessful(), result.errors());