Created
May 21, 2012 05:24
-
-
Save sheki/2760650 to your computer and use it in GitHub Desktop.
Using Scalariform in SBT.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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