mirror of https://github.com/sbt/sbt.git
Don't restrict Maven property name characters too much
Fixes https://github.com/alexarchambault/coursier/issues/246
This commit is contained in:
parent
95d6d9e14e
commit
b7ba8d98d5
|
|
@ -71,7 +71,7 @@ object Resolution {
|
|||
}
|
||||
|
||||
val propRegex = (
|
||||
quote("${") + "([a-zA-Z0-9-.]*)" + quote("}")
|
||||
quote("${") + "([^" + quote("{}") + "]*)" + quote("}")
|
||||
).r
|
||||
|
||||
def substituteProps(s: String, properties: Map[String, String]) = {
|
||||
|
|
|
|||
|
|
@ -34,11 +34,11 @@ object ResolutionTests extends TestSuite {
|
|||
|
||||
Project(Module("acme", "play"), "2.4.1",
|
||||
dependencies = Seq(
|
||||
"" -> Dependency(Module("acme", "play-json"), "${playJsonVersion}"),
|
||||
"" -> Dependency(Module("${project.groupId}", "${configName}"), "1.3.0")),
|
||||
"" -> Dependency(Module("acme", "play-json"), "${play_json_version}"),
|
||||
"" -> Dependency(Module("${project.groupId}", "${WithSpecialChar©}"), "1.3.0")),
|
||||
properties = Seq(
|
||||
"playJsonVersion" -> "2.4.0",
|
||||
"configName" -> "config")),
|
||||
"play_json_version" -> "2.4.0",
|
||||
"WithSpecialChar©" -> "config")),
|
||||
|
||||
Project(Module("acme", "play-extra-no-config"), "2.4.1",
|
||||
Seq(
|
||||
|
|
|
|||
Loading…
Reference in New Issue