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:
commit
33844b616e
2 changed files with 16 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue