import BuildHelper._ Global / onChangedBuildSource := ReloadOnSourceChanges inThisBuild( List( organization := "dev.zio", homepage := Some(url("https://github.com/zio/zio-redis/")), licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")), developers := List( Developer("jdegoes", "John De Goes", "john@degoes.net", url("https://degoes.net")), Developer("mijicd", "Dejan Mijic", "dmijic@acm.org", url("https://github.com/mijicd")) ), pgpPassphrase := sys.env.get("PGP_PASSPHRASE").map(_.toArray), pgpPublicRing := file("/tmp/public.asc"), pgpSecretRing := file("/tmp/secret.asc") ) ) addCommandAlias("prepare", "fix; fmt") addCommandAlias("fmt", "all scalafmtSbt scalafmtAll") addCommandAlias("fmtCheck", "all scalafmtSbtCheck scalafmtCheckAll") addCommandAlias("fix", "scalafixAll") addCommandAlias("fixCheck", "scalafixAll --check") lazy val root = project .in(file(".")) .settings(skip in publish := true) .aggregate(redis, benchmarks, example) lazy val redis = project .in(file("redis")) .enablePlugins(BuildInfoPlugin) .settings(stdSettings("zio-redis")) .settings(buildInfoSettings("zio.redis")) .settings( libraryDependencies ++= Seq( "dev.zio" %% "zio-streams" % Zio, "dev.zio" %% "zio-logging" % "0.5.4", "dev.zio" %% "zio-test" % Zio % Test, "dev.zio" %% "zio-test-sbt" % Zio % Test ), testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")) ) lazy val benchmarks = project .in(file("benchmarks")) .dependsOn(redis) .enablePlugins(JmhPlugin) .settings( skip in publish := true, libraryDependencies ++= Seq( "dev.profunktor" %% "redis4cats-effects" % "0.10.3", "io.chrisdavenport" %% "rediculous" % "0.0.8", "io.laserdisc" %% "laserdisc-fs2" % "0.4.1" ), scalacOptions in Compile := Seq("-Xlint:unused") ) lazy val example = project .in(file("example")) .settings(stdSettings("example")) .dependsOn(redis) .settings( skip in publish := true, libraryDependencies ++= Seq( "com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.9", "com.softwaremill.sttp.client" %% "circe" % "2.2.9", "de.heikoseeberger" %% "akka-http-circe" % "1.31.0", "dev.zio" %% "zio-streams" % Zio, "dev.zio" %% "zio-config-magnolia" % "1.0.0-RC30-1", "dev.zio" %% "zio-config-typesafe" % "1.0.0-RC30-1", "dev.zio" %% "zio-prelude" % "1.0.0-RC1", "io.circe" %% "circe-core" % "0.13.0", "io.circe" %% "circe-generic" % "0.13.0", "io.scalac" %% "zio-akka-http-interop" % "0.4.0" ), scalacOptions in Compile := Seq("-Xlint:unused") )