aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-07-09 09:32:31 +0200
committeradamw <adam@warski.org>2017-07-09 09:32:31 +0200
commit820095216e671888cfa607b329d749ba099a7bc1 (patch)
tree9276e9ec7be44ccc78dfdf9f2a93475deb36d6ff /build.sbt
parent08dd8ea1b55e62925aeee72de5d63a1e1961b060 (diff)
downloadsttp-820095216e671888cfa607b329d749ba099a7bc1.tar.gz
sttp-820095216e671888cfa607b329d749ba099a7bc1.tar.bz2
sttp-820095216e671888cfa607b329d749ba099a7bc1.zip
Source formatting
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt32
1 files changed, 16 insertions, 16 deletions
diff --git a/build.sbt b/build.sbt
index 09f50d0..3aea1fe 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,26 +1,26 @@
import scalariform.formatter.preferences._
-lazy val commonSettings = scalariformSettings ++ Seq(
+lazy val commonSettings = Seq(
organization := "com.softwaremill.sttp",
version := "0.1",
scalaVersion := "2.12.2",
crossScalaVersions := Seq(scalaVersion.value, "2.11.8"),
scalacOptions ++= Seq("-unchecked", "-deprecation"),
- ScalariformKeys.preferences := ScalariformKeys.preferences.value
- .setPreference(DoubleIndentClassDeclaration, true)
- .setPreference(PreserveSpaceBeforeArguments, true)
- .setPreference(CompactControlReadability, true)
- .setPreference(SpacesAroundMultiImports, false),
+ scalafmtOnCompile := true,
// Sonatype OSS deployment
publishTo := {
val nexus = "https://oss.sonatype.org/"
- val (name, url) = if (isSnapshot.value) ("snapshots", nexus + "content/repositories/snapshots")
- else ("releases", nexus + "service/local/staging/deploy/maven2")
+ val (name, url) =
+ if (isSnapshot.value)
+ ("snapshots", nexus + "content/repositories/snapshots")
+ else ("releases", nexus + "service/local/staging/deploy/maven2")
Some(name at url)
},
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
publishMavenStyle := true,
- pomIncludeRepository := { _ => false },
+ pomIncludeRepository := { _ =>
+ false
+ },
pomExtra := (
<scm>
<url>git@github.com/softwaremill/sttp.git</url>
@@ -33,8 +33,10 @@ lazy val commonSettings = scalariformSettings ++ Seq(
<url>http://www.warski.org</url>
</developer>
</developers>
- ),
- licenses := ("Apache2", new java.net.URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) :: Nil,
+ ),
+ licenses := ("Apache2",
+ new java.net.URL(
+ "http://www.apache.org/licenses/LICENSE-2.0.txt")) :: Nil,
homepage := Some(new java.net.URL("http://softwaremill.com/open-source"))
)
@@ -45,9 +47,7 @@ val scalaTest = "org.scalatest" %% "scalatest" % "3.0.3" % "test"
lazy val rootProject = (project in file("."))
.settings(commonSettings: _*)
- .settings(
- publishArtifact := false,
- name := "sttp")
+ .settings(publishArtifact := false, name := "sttp")
.aggregate(core, akkaHttpHandler, tests)
lazy val core: Project = (project in file("core"))
@@ -67,7 +67,7 @@ lazy val akkaHttpHandler: Project = (project in file("akka-http-handler"))
libraryDependencies ++= Seq(
akkaHttp
)
- ) dependsOn(core)
+ ) dependsOn (core)
lazy val tests: Project = (project in file("tests"))
.settings(commonSettings: _*)
@@ -79,4 +79,4 @@ lazy val tests: Project = (project in file("tests"))
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0" % "test",
"com.github.pathikrit" %% "better-files" % "3.0.0"
)
- ) dependsOn(core, akkaHttpHandler) \ No newline at end of file
+ ) dependsOn (core, akkaHttpHandler)