From 5790001bc13401a12a32dbb3012c49a647cc541a Mon Sep 17 00:00:00 2001 From: vlad Date: Thu, 21 Jul 2016 21:32:49 -0400 Subject: Plugins configuration for releases --- build.sbt | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'build.sbt') diff --git a/build.sbt b/build.sbt index 5bdccc2..3d76b2f 100644 --- a/build.sbt +++ b/build.sbt @@ -1,19 +1,8 @@ import sbt._ import Keys._ +import DriverConfigurations._ -lazy val wartRemoverSettings = Seq( - wartremoverErrors in (Compile, compile) ++= Warts.allBut( - Wart.AsInstanceOf, Wart.Nothing, Wart.Option2Iterable, Wart.ExplicitImplicitTypes, - Wart.Overloading, Wart.DefaultArguments, Wart.ToString, Wart.Any, Wart.Throw) -) - -lazy val scalafmtSettings = Seq( - scalafmtConfig in ThisBuild := Some(file(".scalafmt")), - testExecution in (Test, test) <<= - (testExecution in (Test, test)) dependsOn (scalafmtTest in Compile, scalafmtTest in Test) -) - lazy val compileScalastyle = taskKey[Unit]("compileScalastyle") lazy val buildSettings = Defaults.coreDefaultSettings ++ Seq ( @@ -27,7 +16,7 @@ lazy val buildSettings = Defaults.coreDefaultSettings ++ Seq ( fork in run := true, compileScalastyle := (scalastyle in Compile).toTask("").value, (compile in Compile) <<= ((compile in Compile) dependsOn compileScalastyle) -) ++ wartRemoverSettings ++ scalafmtSettings +) ++ wartRemoverSettings ++ DriverConfigurations.scalafmtSettings lazy val akkaHttpV = "2.4.8" @@ -51,3 +40,5 @@ lazy val core = (project in file(".")). "com.github.swagger-akka-http" %% "swagger-akka-http" % "0.7.1", "com.lihaoyi" %% "acyclic" % "0.1.4" % "provided" )) + .gitPluginConfiguration + .settings(publicationSettings() ++ releaseSettings()) -- cgit v1.2.3