Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Common settings to an sbt autoplugin
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpedromoreno committed Oct 9, 2017
1 parent dcff964 commit 0cea2a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ lazy val plugin = project
.in(file("plugin"))
.dependsOn(core)
.settings(sbtPlugin := true)
.settings(crossScalaVersions := Seq(sbtorgpolicies.model.scalac.`2.12`))
.settings(scalacOptions := Seq("-deprecation", "-encoding", "UTF-8", "-feature", "-unchecked"))
.settings(
orgBadgeListSetting := List(
Expand All @@ -31,6 +30,5 @@ lazy val plugin = project
lazy val core = project
.in(file("core"))
.settings(moduleName := "frees-protogen-core")
.settings(crossScalaVersions := Seq(sbtorgpolicies.model.scalac.`2.12`))
.settings(scalaMetaSettings: _*)
.settings(libraryDependencies += "io.frees" %% "frees-rpc" % "0.0.3")
16 changes: 16 additions & 0 deletions project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import freestyle.FreestylePlugin
import sbt.Keys._
import sbt._

object ProjectPlugin extends AutoPlugin {

override def trigger: PluginTrigger = allRequirements

override def requires: Plugins = FreestylePlugin

override def projectSettings: Seq[Def.Setting[_]] =
Seq(
crossScalaVersions := Seq(sbtorgpolicies.model.scalac.`2.12`)
)

}

0 comments on commit 0cea2a2

Please sign in to comment.