Skip to content

Commit

Permalink
consolidate build sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
d.semenov committed Feb 14, 2020
1 parent 98eefa0 commit 0f6f553
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 101 deletions.
77 changes: 76 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,29 +1,101 @@
import scoverage.ScoverageKeys.coverageMinimum

organization := "io.laserdisc"
name := "fs2-aws"
scalaVersion := "2.12.10"

val fs2Version = "2.2.2"
val AwsSdkVersion = "1.11.717"
val cirisVersion = "0.12.1"

lazy val root = (project in file("."))
.aggregate(`fs2-aws`, `fs2-aws-testkit`, `fs2-aws-dynamodb`, `fs2-aws-core`, `fs2-aws-examples`)
.settings(
skip in publish := true
)

lazy val `fs2-aws-core` = (project in file("fs2-aws-core"))
.settings(
name := "fs2-aws-core",
libraryDependencies ++= Seq(
"co.fs2" %% "fs2-core" % "2.2.2",
"co.fs2" %% "fs2-io" % "2.2.2",
"org.typelevel" %% "alleycats-core" % "2.1.0",
"org.scalatest" %% "scalatest" % "3.1.0" % Test,
"org.mockito" % "mockito-core" % "3.2.4" % Test,
"org.mockito" %% "mockito-scala-scalatest" % "1.11.2" % Test
),
coverageMinimum := 40,
coverageFailOnMinimum := true
)
.settings(commonSettings)

lazy val `fs2-aws-dynamodb` = (project in file("fs2-aws-dynamodb"))
.dependsOn(`fs2-aws-core`)
.settings(
name := "fs2-aws-dynamodb",
coverageMinimum := 40,
coverageFailOnMinimum := true,
libraryDependencies ++= Seq(
"co.fs2" %% "fs2-core" % fs2Version,
"co.fs2" %% "fs2-io" % fs2Version,
"org.typelevel" %% "alleycats-core" % "2.1.0",
"org.scalatest" %% "scalatest" % "3.1.0" % Test,
"org.mockito" % "mockito-core" % "3.2.4" % Test,
"org.mockito" %% "mockito-scala-scalatest" % "1.11.2" % Test,
"com.amazonaws" % "dynamodb-streams-kinesis-adapter" % "1.5.0",
"io.laserdisc" %% "scanamo-circe" % "1.0.5"
)
)
.settings(commonSettings)

lazy val `fs2-aws-examples` = (project in file("fs2-aws-examples"))
.dependsOn(`fs2-aws-dynamodb`)
.settings(
name := "fs2-aws-examples",
coverageMinimum := 0,
libraryDependencies ++= Seq(
"org.mockito" % "mockito-core" % "3.2.4" % Test,
"org.mockito" %% "mockito-scala-scalatest" % "1.11.2" % Test,
"ch.qos.logback" % "logback-classic" % "1.2.3",
"ch.qos.logback" % "logback-core" % "1.2.3",
"org.slf4j" % "jcl-over-slf4j" % "1.7.30",
"org.slf4j" % "jul-to-slf4j" % "1.7.30",
"io.chrisdavenport" %% "log4cats-slf4j" % "1.0.1",
"io.laserdisc" %% "scanamo-circe" % "1.0.5"
)
)
.settings(commonSettings)
.settings(
skip in publish := true
)

lazy val `fs2-aws` = (project in file("fs2-aws"))
.dependsOn(`fs2-aws-core`)
.settings(
name := "fs2-aws",
libraryDependencies ++= Seq(
"co.fs2" %% "fs2-core" % fs2Version,
"co.fs2" %% "fs2-io" % fs2Version,
"com.amazonaws" % "aws-java-sdk-kinesis" % AwsSdkVersion,
"com.amazonaws" % "aws-java-sdk-s3" % AwsSdkVersion,
"com.amazonaws" % "aws-java-sdk-sqs" % AwsSdkVersion,
"com.amazonaws" % "amazon-kinesis-producer" % "0.14.0",
"software.amazon.kinesis" % "amazon-kinesis-client" % "2.2.8",
"software.amazon.awssdk" % "sts" % "2.10.59",
"org.scalatest" %% "scalatest" % "3.1.0" % Test,
"org.mockito" % "mockito-core" % "3.2.4" % Test,
"org.mockito" %% "mockito-scala-scalatest" % "1.11.2" % Test,
"com.amazonaws" % "aws-java-sdk-sqs" % AwsSdkVersion excludeAll ("commons-logging", "commons-logging"),
"com.amazonaws" % "amazon-sqs-java-messaging-lib" % "1.0.8" excludeAll ("commons-logging", "commons-logging"),
"is.cir" %% "ciris-core" % cirisVersion,
"is.cir" %% "ciris-enumeratum" % cirisVersion,
"is.cir" %% "ciris-refined" % cirisVersion,
"eu.timepit" %% "refined" % "0.9.12"
),
coverageMinimum := 40,
coverageFailOnMinimum := true
)
.settings(commonSettings)

lazy val `fs2-aws-testkit` = (project in file("fs2-aws-testkit"))
Expand All @@ -36,6 +108,7 @@ addCommandAlias("checkFormat", ";scalafmtCheck;test:scalafmtCheck;scalafmtSbtChe

lazy val commonSettings = Seq(
organization := "io.laserdisc",
scalaVersion := "2.12.10",
scalacOptions ++= Seq(
"-target:jvm-1.8",
"-encoding",
Expand All @@ -48,7 +121,9 @@ lazy val commonSettings = Seq(
"-Xlint", // enable handy linter warnings
"-Xfatal-warnings", // turn compiler warnings into errors
"-Ypartial-unification" // allow the compiler to unify type constructors of different arities
)
),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.3")
)

addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.10")
Expand Down
19 changes: 0 additions & 19 deletions fs2-aws-core/build.sbt

This file was deleted.

23 changes: 0 additions & 23 deletions fs2-aws-dynamodb/build.sbt

This file was deleted.

26 changes: 0 additions & 26 deletions fs2-aws-examples/build.sbt

This file was deleted.

32 changes: 0 additions & 32 deletions fs2-aws/build.sbt

This file was deleted.

0 comments on commit 0f6f553

Please sign in to comment.