mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 16:39:24 +02:00
allow wildcards in groupId or artifactId
According to https://maven.apache.org/pom.html#Exclusions (and https://maven.apache.org/docs/3.2.1/release-notes.html) wildcards are allowed in Maven POM's schema
This commit is contained in:
@@ -425,7 +425,7 @@ class MakePom(val log: Logger) {
|
||||
def makeExclusion(exclRule: ExcludeRule): Either[String, NodeSeq] = {
|
||||
val m = exclRule.getId.getModuleId
|
||||
val (g, a) = (m.getOrganisation, m.getName)
|
||||
if (g == null || g.isEmpty || g == "*" || a.isEmpty || a == "*")
|
||||
if (g == null || g.isEmpty || a == null || a.isEmpty)
|
||||
Left(
|
||||
"Skipped generating '<exclusion/>' for %s. Dependency exclusion should have both 'org' and 'module' to comply with Maven POM's schema."
|
||||
.format(m)
|
||||
|
||||
Reference in New Issue
Block a user