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