Accept "groupId", "artifactId", "version" properties

This commit is contained in:
Alexandre Archambault 2017-04-21 15:56:59 +02:00
parent 869d7c628e
commit ad80e1482c
3 changed files with 20 additions and 1 deletions

View File

@ -376,7 +376,11 @@ object Resolution {
// although I can find no mention of them in any manual / spec
"pom.groupId" -> project.module.organization,
"pom.artifactId" -> project.module.name,
"pom.version" -> project.version
"pom.version" -> project.version,
// Required by some dependencies too (org.apache.directory.shared:shared-ldap:0.9.19 in particular)
"groupId" -> project.module.organization,
"artifactId" -> project.module.name,
"version" -> project.version
) ++ project.properties ++ Seq(
"project.groupId" -> project.module.organization,
"project.artifactId" -> project.module.name,

View File

@ -0,0 +1,8 @@
antlr:antlr:2.7.7:compile
commons-collections:commons-collections:3.2.1:compile
commons-lang:commons-lang:2.4:compile
org.apache.directory.shared:shared-asn1:0.9.19:compile
org.apache.directory.shared:shared-i18n:0.9.19:compile
org.apache.directory.shared:shared-ldap:0.9.19:compile
org.apache.directory.shared:shared-ldap-constants:0.9.19:compile
org.slf4j:slf4j-api:1.5.10:compile

View File

@ -579,6 +579,13 @@ object CentralTests extends TestSuite {
assert(urls == expectedZipArtifactUrls)
}
}
'groupIdVersionProperties - {
resolutionCheck(
Module("org.apache.directory.shared", "shared-ldap"),
"0.9.19"
)
}
}
}