Skip to content

Commit

Permalink
use private[this]. avoid ambiguous import
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Jul 6, 2016
1 parent ad31204 commit 9c470b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/scala/gilt/DependencyGraph.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 9c470b1

Please sign in to comment.