Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a new root project to set Scala version #50

Merged
merged 1 commit into from
Jan 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
49 changes: 28 additions & 21 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ lazy val buildSettings = Seq(
scalaVersion := "2.11.8",
crossScalaVersions := Seq("2.10.6", scalaVersion.value),
scalacOptions ++= (scalaBinaryVersion.value match {
case "2.10" => Seq("-Xdivergence211")
case _ => Nil
}),
case "2.10" => Seq("-Xdivergence211")
case _ => Nil
}),
scalafmtConfig in ThisBuild := Some(file(".scalafmt")),
headers := Map(
"scala" -> MIT("2016", "47 Degrees, LLC. <http://www.47deg.com>")
Expand All @@ -46,23 +46,24 @@ lazy val micrositeSettings = Seq(
)

lazy val commonDeps = addLibs(vAll,
"cats-free",
"circe-core",
"circe-generic",
"circe-parser",
"simulacrum") ++
"cats-free",
"circe-core",
"circe-generic",
"circe-parser",
"simulacrum") ++
addCompilerPlugins(vAll, "paradise") ++
Seq(libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest" % "3.0.0" % "test",
"com.github.marklister" %%% "base64" % "0.2.3"
))

lazy val jvmDeps = Seq(
Seq(
libraryDependencies ++= Seq(
"org.scalaj" %% "scalaj-http" % "2.3.0",
"org.mock-server" % "mockserver-netty" % "3.10.4" % "test"
"org.scalatest" %%% "scalatest" % "3.0.0" % "test",
"com.github.marklister" %%% "base64" % "0.2.3"
))

lazy val jvmDeps = Seq(
libraryDependencies ++= Seq(
"org.scalaj" %% "scalaj-http" % "2.3.0",
"org.mock-server" % "mockserver-netty" % "3.10.4" % "test"
))

lazy val jsDeps = Seq(
libraryDependencies ++= Seq(
"fr.hmil" %%% "roshttp" % "2.0.0-RC1"
Expand All @@ -76,15 +77,21 @@ lazy val docsDependencies = libraryDependencies ++= Seq(

lazy val scalazDependencies = addLibs(vAll, "scalaz-concurrent")

lazy val root = (project in file("."))
.settings(buildSettings: _*)
.aggregate(github4sJVM, github4sJS, scalaz, docs)

/** github4s - cross project that provides cross platform support.*/
lazy val github4s = (crossProject in file("github4s"))
.settings(moduleName := "github4s")
.enablePlugins(AutomateHeaderPlugin)
.enablePlugins(BuildInfoPlugin).
settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, "token" -> Option(sys.props("token")).getOrElse("")),
buildInfoPackage := "github4s"
)
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name,
version,
"token" -> Option(sys.props("token")).getOrElse("")),
buildInfoPackage := "github4s"
)
.settings(buildSettings: _*)
.settings(commonDeps: _*)
.jvmSettings(jvmDeps: _*)
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("com.fortysevendeg" % "sbt-catalysts-extras" % "0.1.2")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.4.7")
addSbtPlugin("com.fortysevendeg" % "sbt-microsites" % "0.2.6")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.4.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.4.0")
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.9.1-SNAPSHOT"
version in ThisBuild := "0.9.1-SNAPSHOT"