Make the standard Eclipse settings an autoplugin
This commit is contained in:
parent
930487e882
commit
d39e796090
@ -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)
|
||||||
|
@ -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),
|
Loading…
Reference in New Issue
Block a user