Skip to content

Commit

Permalink
separate out kafka-test so that core code can build with scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Sep 2, 2023
1 parent 2680316 commit 9e559ef
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 6 deletions.
20 changes: 15 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,24 @@ lazy val eventsourced =
// provides offset storage backed by Kafka managed offset commits
lazy val kafka =
Project(id = "kafka", base = file("kafka"))
.configs(IntegrationTest)
.enablePlugins(ReproducibleBuildsPlugin)
.settings(headerSettings(IntegrationTest))
.settings(Defaults.itSettings)
.settings(crossScalaVersions := Dependencies.Scala2And3Versions)
.settings(Dependencies.kafka)
.settings(
name := "pekko-projection-kafka")
.dependsOn(core)

lazy val kafkaTest =
Project(id = "kafka-test", base = file("kafka-test"))
.configs(IntegrationTest)
.enablePlugins(ReproducibleBuildsPlugin)
.settings(headerSettings(IntegrationTest))
.settings(Defaults.itSettings)
.settings(Dependencies.kafkaTest)
.settings(
name := "pekko-projection-kafka-test",
publish / skip := true)
.dependsOn(kafka)
.dependsOn(testkit % Test)
.dependsOn(slick % "test->test;it->it")

Expand Down Expand Up @@ -169,7 +179,7 @@ lazy val examples = project
.dependsOn(cassandra % "test->test;test->it")
.dependsOn(eventsourced)
.dependsOn(`durable-state`)
.dependsOn(kafka % "test->test")
.dependsOn(kafkaTest % "test->test")
.dependsOn(testkit % Test)
.settings(publish / skip := true, scalacOptions += "-feature", javacOptions += "-parameters")

Expand Down Expand Up @@ -207,7 +217,7 @@ lazy val docs = project
apidocRootPackage := "org.apache.pekko")

lazy val root = Project(id = "projection", base = file("."))
.aggregate(core, coreTest, testkit, jdbc, slick, cassandra, eventsourced, kafka, `durable-state`, examples, docs)
.aggregate(core, coreTest, testkit, jdbc, slick, cassandra, eventsourced, kafka, kafkaTest, `durable-state`, examples, docs)
.settings(
publish / skip := true,
name := "pekko-projection-root")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ object Dependencies {
val kafka =
deps ++= Seq(
Compile.connectorsKafka,
Compile.jackson,
Compile.jackson)

val kafkaTest =
deps ++= Seq(
Test.scalatest,
Test.pekkoTypedTestkit,
Test.pekkoStreamTestkit,
Expand Down

0 comments on commit 9e559ef

Please sign in to comment.