Don't restrict Maven property name characters too much

Fixes https://github.com/alexarchambault/coursier/issues/246
This commit is contained in:
Alexandre Archambault 2016-05-10 14:07:38 +02:00
parent 95d6d9e14e
commit b7ba8d98d5
No known key found for this signature in database
GPG Key ID: 14640A6839C263A9
2 changed files with 5 additions and 5 deletions

View File

@ -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]) = {

View File

@ -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(