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

MavenId bug.

This commit is contained in:
Cedric Beust 2015-10-28 08:22:44 -07:00
parent 042f184d80
commit 81b59dced9

View file

@ -24,7 +24,7 @@ public class MavenId(val id: String) {
groupId = c[0]
artifactId = c[1]
packaging = if (c.size == 4) c[2] else null
version = if (c.size == 4) c[3] else c[2]
version = if (c.size == 4) c[3] else if (c.size == 3 && ! c[2].isBlank()) c[2] else null
}
val hasVersion = version != null