Make the standard Eclipse settings an autoplugin

This commit is contained in:
Sarah Gerweck 2016-09-25 17:18:10 -07:00
parent 930487e882
commit d39e796090
2 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import Resolvers._
lazy val root = (project in file (".")) lazy val root = (project in file ("."))
.enablePlugins(BasicSettings) .enablePlugins(BasicSettings)
.settings(Eclipse.settings: _*)
.settings(Publish.settings: _*) .settings(Publish.settings: _*)
.settings(Release.settings: _*) .settings(Release.settings: _*)
.settings(resolvers += sonatypeRelease) .settings(resolvers += sonatypeRelease)

View File

@ -1,10 +1,13 @@
import sbt._ import sbt._
import com.typesafe.sbteclipse.plugin.EclipsePlugin
import com.typesafe.sbteclipse.plugin.EclipsePlugin._ import com.typesafe.sbteclipse.plugin.EclipsePlugin._
object Eclipse { object EclipseDefaults extends AutoPlugin {
override def requires = EclipsePlugin
override def trigger = allRequirements
val settings = Seq ( override lazy val buildSettings = Seq(
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource, EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource,
EclipseKeys.projectFlavor := EclipseProjectFlavor.Scala, EclipseKeys.projectFlavor := EclipseProjectFlavor.Scala,
EclipseKeys.executionEnvironment := Some(EclipseExecutionEnvironment.JavaSE18), EclipseKeys.executionEnvironment := Some(EclipseExecutionEnvironment.JavaSE18),