1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fix repos from the build file.

This commit is contained in:
Cedric Beust 2016-03-15 01:31:13 +04:00
parent a304fc04bd
commit a66b7be5da

View file

@ -33,10 +33,12 @@ public class Kobalt {
Kobalt.context?.pluginInfo?.repoContributors?.forEach {
result.addAll(it.reposFor(null))
}
result.addAll(reposFromBuildFiles)
return result.toHashSet()
}
val reposFromBuildFiles = HashSet<HostConfig>(Constants.DEFAULT_REPOS.map { HostConfig(it) })
val reposFromBuildFiles = hashSetOf<HostConfig>()
fun addRepo(repo: HostConfig) = reposFromBuildFiles.add(
if (repo.url.endsWith("/")) repo