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

Minor fixes.

This commit is contained in:
Cedric Beust 2015-12-10 19:20:07 +03:00
parent 902710c737
commit e1c7aa6a43

View file

@ -18,11 +18,11 @@ public class CheckVersions @Inject constructor(val depFactory : DepFactory,
val newVersions = hashSetOf<String>() val newVersions = hashSetOf<String>()
projects.forEach { projects.forEach {
arrayListOf(it.compileDependencies, it.testDependencies).forEach { cds -> listOf(it.compileDependencies, it.testDependencies).forEach { cds ->
cds.forEach { compileDependency -> cds.forEach { compileDependency ->
if (MavenId.isMavenId(compileDependency.id)) { if (MavenId.isMavenId(compileDependency.id)) {
try { try {
val dep = depFactory.create(compileDependency.shortId, executor, false /* go remote */) val dep = depFactory.create(compileDependency.shortId, executor, localFirst = false)
if (dep is MavenDependency) { if (dep is MavenDependency) {
val other = compileDependency as MavenDependency val other = compileDependency as MavenDependency
if (dep.id != compileDependency.id if (dep.id != compileDependency.id
@ -31,7 +31,7 @@ public class CheckVersions @Inject constructor(val depFactory : DepFactory,
} }
} }
} catch(e: KobaltException) { } catch(e: KobaltException) {
log(1, "cannot resolve ${compileDependency.shortId}. ignoring") log(1, " Cannot resolve ${compileDependency.shortId}. ignoring")
} }
} }
} }