Fixed checking for null current dependency version.
This commit is contained in:
parent
d4d1be7a5d
commit
fcbd5de5d6
1 changed files with 7 additions and 5 deletions
|
@ -246,15 +246,17 @@ class VersionEyePlugin @Inject constructor(val configActor: ConfigActor<VersionE
|
||||||
o.getAsJsonArray("dependencies").forEach {
|
o.getAsJsonArray("dependencies").forEach {
|
||||||
val dep = it.asJsonObject
|
val dep = it.asJsonObject
|
||||||
val depName = dep.get("name").asString
|
val depName = dep.get("name").asString
|
||||||
val curVer = dep.get("version_current").asString
|
val curVer = dep.get("version_current")
|
||||||
|
|
||||||
// Outdated dependencies
|
// Outdated dependencies
|
||||||
if (dep.get("outdated").asBoolean) {
|
if (dep.get("outdated").asBoolean) {
|
||||||
if (depsInfo.isNotEmpty()) {
|
if (!curVer.isJsonNull) {
|
||||||
depsInfo.append(lf)
|
if (depsInfo.isNotEmpty()) {
|
||||||
|
depsInfo.append(lf)
|
||||||
|
}
|
||||||
|
depsInfo.append(Utils.redLight(" - $depName -> "
|
||||||
|
+ curVer.asString, out_number, isFailDeps, config.colors))
|
||||||
}
|
}
|
||||||
depsInfo.append(Utils.redLight(" - $depName -> $curVer", out_number, isFailDeps,
|
|
||||||
config.colors))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse licenses
|
// Parse licenses
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue