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

Merge pull request #363 from ethauvin/master

file:// no longer considered valid maven coordinates
This commit is contained in:
Cedric Beust 2017-03-28 09:16:58 -07:00 committed by GitHub
commit 33844b616e
2 changed files with 16 additions and 2 deletions

View file

@ -17,8 +17,12 @@ class MavenId private constructor(val groupId: String, val artifactId: String, v
val classifier: String?, val version: String?) {
companion object {
fun isMavenId(id: String) = with(id.split(':')) {
size >= 3 && size <= 5
fun isMavenId(id: String) = if (id.startsWith("file://")) {
false
} else {
with(id.split(':')) {
size >= 3 && size <= 5
}
}
fun isRangedVersion(s: String): Boolean {