Skip to content

Commit

Permalink
Ensure no double slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
ianoc committed Apr 22, 2022
1 parent da77025 commit 7648910
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class CoursierResolver(servers: List[DependencyServer], ec: ExecutionContext, ru
val classifierSuffix: String = classifier.filter(_.nonEmpty).map("-" + _).getOrElse("")
val ext: String = extension.filter(_.nonEmpty).getOrElse("jar")

s"$url/${organization.replace('.', '/')}/$moduleName/$version/$moduleName-$version$classifierSuffix.$ext"
s"${url.stripSuffix("/")}/${organization.replace('.', '/')}/$moduleName/$version/$moduleName-$version$classifierSuffix.$ext"
}

Some(mavenUrl(url, organization, moduleName, version, None, Option(extension)))
Expand Down

0 comments on commit 7648910

Please sign in to comment.