Skip to content

Commit

Permalink
scala-parallel-collections native (#1441)
Browse files Browse the repository at this point in the history
Co-authored-by: Jules Ivanic <[email protected]>
  • Loading branch information
sideeffffect and guizmaii authored Jan 8, 2025
1 parent ba3e25e commit 8b60b62
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ val projectsCommon = List(

val projectsJvmOnly = List[ProjectReference](
benchmarks,
docs,
scalaParallelCollections
docs
)

lazy val rootJVM = project
.in(file("target/rootJVM"))
.settings(publish / skip := true)
.aggregate(projectsCommon.map(_.jvm: ProjectReference): _*)
.aggregate(scalaParallelCollections.jvm)
.aggregate(projectsJvmOnly: _*)

lazy val rootJS = project
Expand All @@ -74,17 +74,19 @@ lazy val rootNative = project
.in(file("target/rootNative"))
.settings(publish / skip := true)
.aggregate(projectsCommon.map(_.native: ProjectReference): _*)
.aggregate(scalaParallelCollections.native)

lazy val root212 = project
.in(file("target/root212"))
.settings(publish / skip := true)
.aggregate(projectsCommon.map(_.jvm: ProjectReference): _*)
.aggregate(benchmarks, scalaParallelCollections)
.aggregate(benchmarks, scalaParallelCollections.jvm)

lazy val root213 = project
.in(file("target/root213"))
.settings(publish / skip := true)
.aggregate(projectsCommon.map(_.jvm: ProjectReference): _*)
.aggregate(scalaParallelCollections.jvm)
.aggregate(projectsJvmOnly: _*)

lazy val root3 = project
Expand All @@ -96,6 +98,7 @@ lazy val root = project
.in(file("."))
.settings(publish / skip := true)
.aggregate(projectsCommon.flatMap(p => List[ProjectReference](p.jvm, p.js, p.native)): _*)
.aggregate(scalaParallelCollections.jvm, scalaParallelCollections.native)
.aggregate(projectsJvmOnly: _*)

lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
Expand Down Expand Up @@ -237,9 +240,9 @@ lazy val experimentalTests = crossProject(JSPlatform, JVMPlatform, NativePlatfor
.nativeSettings(nativeSettings)
.enablePlugins(BuildInfoPlugin)

lazy val scalaParallelCollections = project
lazy val scalaParallelCollections = crossProject(JVMPlatform, NativePlatform)
.in(file("scala-parallel-collections"))
.dependsOn(core.jvm, coreTests.jvm % "test->test")
.dependsOn(core, coreTests % "test->test")
.settings(stdSettings("zio-prelude-scala-parallel-collections"))
.settings(buildInfoSettings("zio.prelude.scalaparallelcollections"))
.settings(testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")))
Expand All @@ -256,7 +259,8 @@ lazy val scalaParallelCollections = project
}
)
.settings(libraryDependencies += "dev.zio" %%% "zio-test-sbt" % zioVersion % Test)
.settings(scalaReflectTestSettings)
.jvmSettings(scalaReflectTestSettings)
.nativeSettings(nativeSettings)
.enablePlugins(BuildInfoPlugin)

lazy val benchmarks = project
Expand Down Expand Up @@ -289,11 +293,11 @@ lazy val docs = project
experimental.jvm,
experimentalLaws.jvm,
laws.jvm,
scalaParallelCollections
scalaParallelCollections.jvm
)
)
.settings(macroDefinitionSettings)
.dependsOn(core.jvm, experimental.jvm, experimentalLaws.jvm, laws.jvm, scalaParallelCollections)
.dependsOn(core.jvm, experimental.jvm, experimentalLaws.jvm, laws.jvm, scalaParallelCollections.jvm)
.enablePlugins(WebsitePlugin)

lazy val examples =
Expand Down

0 comments on commit 8b60b62

Please sign in to comment.