mirror of
https://github.com/sbt/sbt.git
synced 2026-09-05 01:03:36 +02:00
better error when publish resolver from custom configuration doesn't exist
This commit is contained in:
@@ -92,6 +92,7 @@ object IvyActions
|
||||
import configuration._
|
||||
module.withModule(log) { case (ivy, md, default) =>
|
||||
val resolver = ivy.getSettings.getResolver(resolverName)
|
||||
if(resolver eq null) error("Undefined resolver '" + resolverName + "'")
|
||||
val ivyArtifact = ivyFile map { file => (MDArtifact.newIvyArtifact(md), file) }
|
||||
val is = crossIvyScala(module.moduleSettings)
|
||||
val as = mapArtifacts(md, is, artifacts) ++ ivyArtifact.toList
|
||||
|
||||
Reference in New Issue
Block a user