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

build.sbt: reorganize munit dependencies #385

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ ThisBuild / scalaVersion := Scala213 // the default Scala
val CatsVersion = "2.10.0"
val CatsEffectVersion = "3.5.2"
val CatsMtlVersion = "1.4.0"
val DisciplineMUnitVersion = "2.0.0-M3"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is the MUnitDisciplineVersion below

val FS2Version = "3.9.3"
val MUnitVersion = "1.0.0-M10"
val MUnitCatsEffectVersion = "2.0.0-M4"
Expand All @@ -54,6 +53,7 @@ lazy val scalaReflectDependency = Def.settings(
lazy val munitDependencies = Def.settings(
libraryDependencies ++= Seq(
"org.scalameta" %%% "munit" % MUnitVersion % Test,
"org.scalameta" %%% "munit-scalacheck" % MUnitVersion % Test,
"org.typelevel" %%% "munit-cats-effect" % MUnitCatsEffectVersion % Test
)
)
Expand Down Expand Up @@ -93,6 +93,7 @@ lazy val root = tlCrossRootProject
lazy val `core-common` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("core/common"))
.settings(munitDependencies)
.settings(
name := "otel4s-core-common",
libraryDependencies ++= Seq(
Expand All @@ -101,9 +102,7 @@ lazy val `core-common` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
"org.typelevel" %%% "cats-mtl" % CatsMtlVersion,
"org.typelevel" %%% "vault" % VaultVersion % Test,
"org.typelevel" %%% "cats-laws" % CatsVersion % Test,
"org.typelevel" %%% "discipline-munit" % DisciplineMUnitVersion % Test,
"org.scalameta" %%% "munit" % MUnitVersion % Test,
"org.scalameta" %%% "munit-scalacheck" % MUnitVersion % Test,
"org.typelevel" %%% "discipline-munit" % MUnitDisciplineVersion % Test,
"lgbt.princess" %%% "platform" % PlatformVersion % Test
)
)
Expand Down Expand Up @@ -135,9 +134,8 @@ lazy val `core-trace` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-effect-kernel" % CatsEffectVersion,
"org.scodec" %%% "scodec-bits" % ScodecVersion,
"org.scalameta" %%% "munit-scalacheck" % MUnitVersion % Test,
"org.typelevel" %%% "cats-laws" % CatsVersion % Test,
"org.typelevel" %%% "discipline-munit" % DisciplineMUnitVersion % Test
"org.typelevel" %%% "discipline-munit" % MUnitDisciplineVersion % Test
)
)
.settings(scalafixSettings)
Expand All @@ -164,9 +162,7 @@ lazy val `sdk-common` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
"org.typelevel" %%% "cats-effect-kernel" % CatsEffectVersion,
"org.typelevel" %%% "cats-mtl" % CatsMtlVersion,
"org.typelevel" %%% "cats-laws" % CatsVersion % Test,
"org.typelevel" %%% "discipline-munit" % DisciplineMUnitVersion % Test,
"org.scalameta" %%% "munit" % MUnitVersion % Test,
"org.scalameta" %%% "munit-scalacheck" % MUnitVersion % Test,
"org.typelevel" %%% "discipline-munit" % MUnitDisciplineVersion % Test,
),
buildInfoPackage := "org.typelevel.otel4s.sdk",
buildInfoOptions += sbtbuildinfo.BuildInfoOption.PackagePrivate,
Expand All @@ -187,9 +183,8 @@ lazy val `sdk-trace` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
startYear := Some(2023),
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-effect" % CatsEffectVersion,
"org.scalameta" %%% "munit-scalacheck" % MUnitVersion % Test,
"org.typelevel" %%% "cats-laws" % CatsVersion % Test,
"org.typelevel" %%% "discipline-munit" % DisciplineMUnitVersion % Test
"org.typelevel" %%% "discipline-munit" % MUnitDisciplineVersion % Test
),
)
.settings(munitDependencies)
Expand Down Expand Up @@ -284,7 +279,6 @@ lazy val `java-trace` = project
"io.opentelemetry" % "opentelemetry-sdk-testing" % OpenTelemetryVersion % Test,
"org.typelevel" %%% "cats-effect-testkit" % CatsEffectVersion % Test,
"co.fs2" %% "fs2-core" % FS2Version % Test,
"org.scalameta" %%% "munit-scalacheck" % MUnitVersion % Test
),
mimaBinaryIssueFilters ++= Seq(
ProblemFilters.exclude[MissingClassProblem](
Expand Down