SHARE
TWEET

Untitled

a guest Aug 20th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package dev.stopkran.sbt
  2.  
  3. import sbt._
  4. import sbt.Keys.{baseDirectory, commands}
  5. import scala.util.Try
  6.  
  7. object United extends AutoPlugin{
  8.  
  9.   val scope = Default
  10.  
  11.  
  12.   val settingsDirectory = settingKey[String]("settingsDirectory")
  13.  
  14.   private val workingSettingsDirectory = Try(settingsDirectory.value).getOrElse("..")
  15.   val settingsFile = "dependencies.scala"
  16.  
  17.   println(s"Starting United with settings directory: $workingSettingsDirectory")
  18.  
  19.  
  20.   private val parsedConf = ConfigParser.parseFile(workingSettingsDirectory + "/" + settingsFile)
  21.  
  22.   val deps: Map[String, ModuleID] = parsedConf._1
  23.   val groups: Map[String, Seq[ModuleID]] = parsedConf._2
  24.   val depsVersions: Map[String, String] = parsedConf._3
  25.   val versions: Map[String, String] = parsedConf._4
  26.  
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top