diff --git a/src/main/kotlin/com/beust/kobalt/kotlin/BuildFileCompiler.kt b/src/main/kotlin/com/beust/kobalt/kotlin/BuildFileCompiler.kt index 2a31f5f8..5f2b5ad2 100644 --- a/src/main/kotlin/com/beust/kobalt/kotlin/BuildFileCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/kotlin/BuildFileCompiler.kt @@ -65,6 +65,9 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b return allProjects } + /** + * Make sure all the projects have a unique name. + */ private fun validateProjects(projects: List) { val seen = hashSetOf() projects.forEach { @@ -93,7 +96,7 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b } // Write the modified Build.kt (e.g. maybe profiles were applied) to a temporary file, - // compile it and run it + // compile it, jar it in buildScript.jar and run it val modifiedBuildFile = KFiles.createTempFile(".kt") KFiles.saveFile(modifiedBuildFile, pair.first.buildScriptCode) maybeCompileBuildFile(context, BuildFile(Paths.get(modifiedBuildFile.path), "Modified Build.kt"),