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

Commit

Permalink
create two projects, one for non-framework dependant code (core) and …
Browse files Browse the repository at this point in the history
…one for the existing scalatra bits
  • Loading branch information
paulmr committed Oct 7, 2014
1 parent bf8af6a commit 9ae84f7
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
name := "feature-switching"

version := "0.12-SNAPSHOT"
version := "0.13-SNAPSHOT"

organization := "com.gu"

scalaVersion := "2.10.0"

libraryDependencies ++= Seq(
lazy val commonDependencies = Seq(
"javax.servlet" % "servlet-api" % "2.5" % "provided",
"org.slf4j" % "slf4j-api" % "1.6.1"
)

lazy val scalatraDependencies = Seq(
"net.liftweb" %% "lift-json" % "2.5",
"org.slf4j" % "slf4j-api" % "1.6.1",
"org.scalatra" %% "scalatra" % "2.0.5"
)

lazy val featureSwitchingCore = (project in file("core"))
.settings(libraryDependencies ++= commonDependencies)

lazy val featureSwitchingScalatra = (project in file("scalatra"))
.settings(libraryDependencies ++= commonDependencies ++ scalatraDependencies)
.dependsOn(featureSwitchingCore)

lazy val root = (project in file("."))
.dependsOn(featureSwitchingCore, featureSwitchingScalatra)

publishTo <<= (version) { version: String =>
val publishType = if (version.endsWith("SNAPSHOT")) "snapshots" else "releases"
Some(
Expand Down

0 comments on commit 9ae84f7

Please sign in to comment.