modernize build

This commit is contained in:
Johannes Rudolph 2014-12-22 12:17:52 +01:00
parent 0bcd2e03f4
commit 69946f3e2c
7 changed files with 25 additions and 20 deletions

View File

@ -1,5 +1,3 @@
seq(lsSettings :_*)
crossBuildingSettings
CrossBuilding.crossSbtVersions := Seq("0.11.1", "0.11.2", "0.11.3", "0.12", "0.13")
@ -15,7 +13,7 @@ libraryDependencies <++= scalaVersion { version =>
libraryDependencies <+= scalaVersion { version =>
if (version startsWith "2.9") "org.specs2" % "specs2_2.9.3" % "1.12.4.1" % "test"
else "org.specs2" %% "specs2" % "2.1.1" % "test"
else "org.specs2" %% "specs2" % "2.3.11" % "test"
}
scalacOptions ++= Seq("-deprecation", "-unchecked")

View File

@ -9,10 +9,3 @@ version := "0.7.5-SNAPSHOT"
homepage := Some(url("http://github.com/jrudolph/sbt-dependency-graph"))
licenses in GlobalScope += "Apache License 2.0" -> url("https://github.com/jrudolph/sbt-dependency-graph/raw/master/LICENSE")
(LsKeys.tags in LsKeys.lsync) := Seq("dependency", "graph", "sbt-plugin", "sbt")
(LsKeys.docsUrl in LsKeys.lsync) <<= homepage
(description in LsKeys.lsync) :=
"An sbt plugin to visualize dependencies of your build."

View File

@ -0,0 +1,20 @@
import sbt._
import com.typesafe.sbt.SbtScalariform
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
object ScalariformSupport {
lazy val formatSettings = SbtScalariform.scalariformSettings ++ Seq(
ScalariformKeys.preferences in Compile := formattingPreferences,
ScalariformKeys.preferences in Test := formattingPreferences
)
import scalariform.formatter.preferences._
def formattingPreferences =
FormattingPreferences()
.setPreference(RewriteArrowSymbols, true)
.setPreference(AlignParameters, true)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
}

View File

@ -1 +1 @@
sbt.version=0.12.4
sbt.version=0.13.7

View File

@ -1,3 +0,0 @@
resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.6")

1
project/pgp.sbt Normal file
View File

@ -0,0 +1 @@
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

View File

@ -1,7 +1,3 @@
resolvers += "less is" at "http://repo.lessis.me"
addSbtPlugin("net.virtual-void" % "sbt-cross-building" % "0.8.1")
addSbtPlugin("me.lessis" % "ls-sbt" % "0.1.2")
resolvers += "Coda Hale's Repo" at "http://repo.codahale.com"
addSbtPlugin("net.virtual-void" % "sbt-cross-building" % "0.8.0-RC1")
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.2.1")