Skip to content

Commit

Permalink
Remove scripted workaround
Browse files Browse the repository at this point in the history
Shouldn't be required anymore since
09c5ce4
  • Loading branch information
alexarchambault committed Sep 23, 2017
1 parent b7c7d5f commit ccd102e
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions project/Settings.scala
Expand Up @@ -183,32 +183,6 @@ object Settings {
divertThingsPlugin ++ divertThingsPlugin ++
withScriptedTests ++ withScriptedTests ++
Seq( Seq(
sbtLauncher := {

val rep = update
.value
.configuration(ScriptedPlugin.scriptedLaunchConf.name)
.getOrElse(sys.error(s"Configuration ${ScriptedPlugin.scriptedLaunchConf.name} not found"))

val org = "org.scala-sbt"
val name = "sbt-launch"

val (_, jar) = rep
.modules
.find { modRep =>
modRep.module.organization == org && modRep.module.name == name
}
.getOrElse {
sys.error(s"Module $org:$name not found in configuration ${ScriptedPlugin.scriptedLaunchConf.name}")
}
.artifacts
.headOption
.getOrElse {
sys.error(s"No artifacts found for module $org:$name in configuration ${ScriptedPlugin.scriptedLaunchConf.name}")
}

jar
},
scriptedLaunchOpts ++= Seq( scriptedLaunchOpts ++= Seq(
"-Xmx1024M", "-Xmx1024M",
"-Dplugin.version=" + version.value, "-Dplugin.version=" + version.value,
Expand Down

0 comments on commit ccd102e

Please sign in to comment.