Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
use commontsettings
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmr committed Oct 7, 2014
1 parent 24de7da commit bc6b555
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name := "feature-switching"

version in ThisBuild := "0.13-SNAPSHOT"

organization := "com.gu"

scalaVersion := "2.10.0"

lazy val commonDependencies = Seq(
"javax.servlet" % "servlet-api" % "2.5" % "provided",
"org.slf4j" % "slf4j-api" % "1.6.1"
Expand All @@ -16,15 +10,23 @@ lazy val scalatraDependencies = Seq(
"org.scalatra" %% "scalatra" % "2.0.5"
)

lazy val commonSettings = Seq(
version := "0.13-SNAPSHOT",
organization := "com.gu",
scalaVersion := "2.10.0",
libraryDependencies ++= commonDependencies,
scalacOptions += "-deprecation"
)

lazy val core = Project("feature-switching-core", file("core"))
.settings(libraryDependencies ++= commonDependencies)
.settings(commonSettings: _*)

lazy val scalatra = Project("feature-switching-scalatra", file("scalatra"))
.settings(libraryDependencies ++= commonDependencies ++ scalatraDependencies)
.settings((libraryDependencies ++= commonDependencies ++ scalatraDependencies) ++ commonSettings: _*)
.dependsOn(core)

lazy val root = (project in file("."))
.settings(publishArtifact := false)
.settings((publishArtifact := false) ++ commonSettings: _*)
.dependsOn(core, scalatra)

publishTo <<= (version) { version: String =>
Expand All @@ -36,6 +38,3 @@ publishTo <<= (version) { version: String =>
)
)
}


scalacOptions += "-deprecation"

0 comments on commit bc6b555

Please sign in to comment.