Skip to content

Instantly share code, notes, and snippets.

@sheki
Created May 21, 2012 05:24
Show Gist options
  • Select an option

  • Save sheki/2760651 to your computer and use it in GitHub Desktop.

Select an option

Save sheki/2760651 to your computer and use it in GitHub Desktop.
Using Scalariform in SBT.
import sbt._
import Keys._
import sbt.Package._
import java.util.jar.Attributes.Name._
import com.typesafe.sbtscalariform.ScalariformPlugin._
import scalariform.formatter.preferences._
object CMSBuild extends Build {
override lazy val settings = super.settings :+
(shellPrompt := {
s => Project.extract(s).currentProject.id + "> "
})
lazy val standardSettings = Defaults.defaultSettings ++ Seq(
organization := "flipkart.digital",
version := "0.1.0",
scalaVersion := "2.9.1",
ScalariformKeys.preferences := FormattingPreferences().
setPreference(DoubleIndentClassDeclaration, false).
setPreference(PreserveDanglingCloseParenthesis, false),
libraryDependencies ++= Seq("org.specs2" %% "specs2" % "1.9" % "test"),
resolvers ++= Seq(ScalaToolsSnapshots, TwitterMavenRepo),
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked"),
javacOptions ++= Seq("-Xlint:unchecked")
)
lazy val slog = Project(
id = "cms",
base = file("."),
settings = standardSettings,
aggregate = Seq(eonstore, viewsapi, utils, eonDefinitionStore)
) dependsOn(eonstore, viewsapi, utils, eonDefinitionStore)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment