Add short syntax for jitpack repo

This commit is contained in:
Alexandre Archambault 2017-07-22 17:29:33 +02:00
parent 4ed2e2a261
commit 9dfed94053
2 changed files with 7 additions and 0 deletions

View File

@ -207,6 +207,8 @@ object Parse {
).right
else if (s.startsWith("ivy:"))
IvyRepository.parse(s.stripPrefix("ivy:"))
else if (s == "jitpack")
MavenRepository("https://jitpack.io").right
else
MavenRepository(s).right

View File

@ -42,5 +42,10 @@ object ParseTests extends TestSuite {
val res = Parse.repository("typesafe:releases")
assert(res.exists(isMavenRepo))
}
"jitpack" - {
val res = Parse.repository("jitpack")
assert(res.exists(isMavenRepo))
}
}
}