diff --git a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt index 58ee7438..9beef9c8 100644 --- a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt @@ -124,7 +124,7 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b val result = kotlinCompilePrivate { classpath(files.kobaltJar) classpath(pluginUrls.map { it.file }) - sourceFiles(listOf(buildFile.path.toFile().absolutePath)) + sourceFiles(listOf(buildFile.realPath.toFile().absolutePath)) output = buildScriptJarFile }.compile(context = context)