mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Minor fixes.
This commit is contained in:
parent
902710c737
commit
e1c7aa6a43
1 changed files with 4 additions and 4 deletions
|
@ -18,20 +18,20 @@ 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
|
||||||
&& Versions.toLongVersion(dep.version) > Versions.toLongVersion(other.version)) {
|
&& Versions.toLongVersion(dep.version) > Versions.toLongVersion(other.version)) {
|
||||||
newVersions.add(dep.id)
|
newVersions.add(dep.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(e: KobaltException) {
|
} catch(e: KobaltException) {
|
||||||
log(1, "cannot resolve ${compileDependency.shortId}. ignoring")
|
log(1, " Cannot resolve ${compileDependency.shortId}. ignoring")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue