From 9c470b18eeb8dd87aeafb472e2a539b8eb558e81 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Wed, 6 Jul 2016 17:46:16 +0900 Subject: [PATCH] use private[this]. avoid ambiguous import - https://issues.scala-lang.org/browse/SI-2133 - https://github.com/sbt/sbt-protobuf/issues/37 --- src/main/scala/gilt/DependencyGraph.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/scala/gilt/DependencyGraph.scala b/src/main/scala/gilt/DependencyGraph.scala index 40bef17..3e5aff3 100644 --- a/src/main/scala/gilt/DependencyGraph.scala +++ b/src/main/scala/gilt/DependencyGraph.scala @@ -8,7 +8,7 @@ import gilt.dependency.graph.sugar.{Aliases, CommandParser} //TODO: limit stringly-typed format to valid types object DependencyGraph extends Plugin { - lazy val parser = CommandParser + private[this] lazy val parser = CommandParser val defaultFormat = "svg" @@ -40,11 +40,11 @@ object DependencyGraph extends Plugin { configs.flatMap(inConfig(_)(keys)) } - private lazy val configs = Seq(Compile, Test, Runtime, Provided, Optional) + private[this] lazy val configs = Seq(Compile, Test, Runtime, Provided, Optional) - private lazy val DefaultCommand = Seq("open", "-a", "Safari", "$1") + private[this] lazy val DefaultCommand = Seq("open", "-a", "Safari", "$1") - private def openFileCommand() = { + private[this] def openFileCommand() = { // Try to open the file and pull out the first command we can actually parse, // falling back to the DefaultCommand if we can't do so successfully try { @@ -58,7 +58,7 @@ object DependencyGraph extends Plugin { } } - private lazy val dependencyViewSettings = inConfigs { + private[this] lazy val dependencyViewSettings = inConfigs { Seq( dependencyGraphOutputFormat := defaultFormat, dependencyGraphRender <<= (graph.DependencyGraphKeys.dependencyDot, dependencyGraphOutputFormat) map {