mirror of https://github.com/sbt/sbt.git
Expand allowed maven repository id characters to match maven
see 5c45b3fe22/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java (L84)
This commit is contained in:
parent
5b4458dfde
commit
3de165c1dd
|
|
@ -504,7 +504,7 @@ class MakePom(val log: Logger) {
|
|||
s.toArray.map(_.asInstanceOf[DependencyResolver])
|
||||
|
||||
def toID(name: String) = checkID(name.filter(isValidIDCharacter).mkString, name)
|
||||
def isValidIDCharacter(c: Char) = c.isLetterOrDigit
|
||||
def isValidIDCharacter(c: Char) = """\/:"<>|?*""".contains(c)
|
||||
private def checkID(id: String, name: String) =
|
||||
if (id.isEmpty) sys.error("Could not convert '" + name + "' to an ID") else id
|
||||
def mavenRepository(repo: MavenRepository): XNode =
|
||||
|
|
|
|||
Loading…
Reference in New Issue