diff --git a/ivy/Ivy.scala b/ivy/Ivy.scala index 49cdf2720..f5d2bd2bb 100644 --- a/ivy/Ivy.scala +++ b/ivy/Ivy.scala @@ -34,7 +34,7 @@ final class IvySbt(val configuration: IvyConfiguration) private def withDefaultLogger[T](f: => T): T = { def action() = - IvySbt.synchronized + IvySbt.synchronized { val originalLogger = Message.getDefaultLogger Message.setDefaultLogger(logger) @@ -93,7 +93,9 @@ final class IvySbt(val configuration: IvyConfiguration) def withModule[T](f: (Ivy,DefaultModuleDescriptor,String) => T): T = withIvy[T] { ivy => f(ivy, moduleDescriptor, defaultConfig) } - lazy val (moduleDescriptor: DefaultModuleDescriptor, defaultConfig: String) = + def moduleDescriptor = IvySbt.synchronized { moduleDescriptor0 } + def defaultConfig = IvySbt.synchronized { defaultConfig0 } + private[this] lazy val (moduleDescriptor0: DefaultModuleDescriptor, defaultConfig0: String) = { val (baseModule, baseConfiguration) = moduleSettings match