diff --git a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt index 8b17e1bc..0115de43 100644 --- a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt @@ -147,7 +147,7 @@ class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val buildFil classpath(files.kobaltJar) classpath(pluginUrls.map { it.file }) classpath(buildFileClasspath) - sourceFiles(listOf(buildFile.path.toFile().absolutePath)) + sourceFiles(listOf(buildFile.realPath.toFile().absolutePath)) output = buildScriptJarFile }.compile(context = context)