2017-06-05 16:05:55 +02:00
|
|
|
ScriptedPlugin.scriptedSettings
|
2017-10-06 11:43:27 +02:00
|
|
|
ScriptedPlugin.scriptedLaunchOpts += s"-Dproject.version=${version.value}"
|
2012-10-21 18:59:36 +02:00
|
|
|
|
2017-08-14 15:36:50 +02:00
|
|
|
libraryDependencies ++= {
|
2017-08-29 16:48:27 +02:00
|
|
|
println(s"Evaluated ${sbtVersion in pluginCrossBuild value}")
|
|
|
|
|
if ((sbtVersion in pluginCrossBuild).value startsWith "0.13")
|
2017-08-14 15:36:50 +02:00
|
|
|
Seq("com.github.mdr" %% "ascii-graphs" % "0.0.3")
|
|
|
|
|
else
|
|
|
|
|
Nil
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-23 16:19:47 +02:00
|
|
|
|
|
|
|
|
libraryDependencies += "org.specs2" %% "specs2-core" % "3.9.5" % Test
|
2013-07-31 15:22:45 +02:00
|
|
|
|
2017-09-07 17:04:59 +02:00
|
|
|
libraryDependencies += Defaults.sbtPluginExtra(
|
2017-10-06 11:43:08 +02:00
|
|
|
"com.dwijnand" % "sbt-compat" % "1.1.0",
|
2017-09-07 17:04:59 +02:00
|
|
|
(sbtBinaryVersion in pluginCrossBuild).value,
|
|
|
|
|
(scalaBinaryVersion in update).value
|
|
|
|
|
)
|
|
|
|
|
|
2017-10-23 16:19:47 +02:00
|
|
|
crossSbtVersions := Seq("1.0.2", "0.13.16")
|
2017-08-29 16:48:27 +02:00
|
|
|
|
2017-10-23 16:19:47 +02:00
|
|
|
scalacOptions ++= Seq(
|
|
|
|
|
"-deprecation",
|
|
|
|
|
"-encoding", "UTF-8",
|
|
|
|
|
"-feature",
|
|
|
|
|
"-unchecked"
|
|
|
|
|
)
|
2017-08-29 16:48:27 +02:00
|
|
|
|
2017-10-23 16:19:47 +02:00
|
|
|
ScalariformSupport.formatSettings
|