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

Create sbt submodules per scala version #2057

Merged
merged 6 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- checkout
- restore_cache:
key: sbtcache
- run: sbt ++2.12.18 core/test http4s/test akkaHttp/test pekkoHttp/test zioHttp/test quickAdapter/test catsInterop/test tools/test codegenSbt/test clientJVM/test monixInterop/compile tapirInterop/test federation/test reporting/test tracing/test
- run: sbt ++2.12.18 rootJVM212/compile rootJVM212/test
ghostdogpr marked this conversation as resolved.
Show resolved Hide resolved
- save_cache:
key: sbtcache
paths:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- checkout
- restore_cache:
key: sbtcache
- run: sbt ++2.13.12 core/test http4s/test akkaHttp/test pekkoHttp/test play/test zioHttp/test quickAdapter/test examples/compile catsInterop/test benchmarks/compile monixInterop/compile tapirInterop/test clientJVM/test tools/test federation/test reporting/test tracing/test
- run: sbt ++2.13.12 rootJVM213/compile rootJVM213/test examples/compile benchmarks/compile
- save_cache:
key: sbtcache
paths:
Expand All @@ -83,7 +83,7 @@ jobs:
- checkout
- restore_cache:
key: sbtcache
- run: sbt ++2.13.12 core/test http4s/test akkaHttp/test pekkoHttp/test play/test zioHttp/test quickAdapter/test examples/compile catsInterop/test benchmarks/compile monixInterop/compile tapirInterop/test clientJVM/test tools/test federation/test reporting/test tracing/test
- run: sbt ++2.13.12 rootJVM213/compile rootJVM213/test examples/compile benchmarks/compile
- save_cache:
key: sbtcache
paths:
Expand All @@ -98,7 +98,7 @@ jobs:
- checkout
- restore_cache:
key: sbtcache
- run: sbt ++3.3.1 core/test catsInterop/test benchmarks/compile monixInterop/compile clientJVM/test clientJS/compile zioHttp/test quickAdapter/test tapirInterop/test pekkoHttp/test http4s/test play/test federation/test tools/test reporting/test tracing/test
- run: sbt ++3.3.1 rootJVM3/compile rootJVM3/test benchmarks/compile
- save_cache:
key: sbtcache
paths:
Expand All @@ -113,7 +113,7 @@ jobs:
- checkout
- restore_cache:
key: sbtcache
- run: sbt ++3.3.1 core/test catsInterop/test benchmarks/compile monixInterop/compile clientJVM/test clientJS/compile zioHttp/test quickAdapter/test tapirInterop/test pekkoHttp/test http4s/test play/test federation/test tools/test reporting/test tracing/test
- run: sbt ++3.3.1 rootJVM3/compile rootJVM3/test benchmarks/compile
- save_cache:
key: sbtcache
paths:
Expand Down
53 changes: 47 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,8 @@ addCommandAlias(
"all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck"
)

lazy val root = project
.in(file("."))
.enablePlugins(ScalaJSPlugin)
.settings(publish / skip := true)
.settings(crossScalaVersions := Nil)
.aggregate(
lazy val allProjects: Seq[ProjectReference] =
List(
macros,
core,
http4s,
Expand All @@ -104,6 +100,51 @@ lazy val root = project
tracing
)

lazy val root = project
.in(file("."))
.enablePlugins(ScalaJSPlugin)
.settings(publish / skip := true)
.settings(crossScalaVersions := Nil)
.aggregate(allProjects *)

lazy val rootJVM212 = project
.in(file("target/rootJVM212"))
.settings(
crossScalaVersions := Nil,
publish / skip := true,
ideSkipProject := true
)
.settings(crossScalaVersions := Nil)
kyri-petrou marked this conversation as resolved.
Show resolved Hide resolved
.aggregate({
val excluded: Set[ProjectReference] = Set(clientJS, clientNative, clientLaminext, play)
allProjects.filterNot(excluded.contains)
} *)

lazy val rootJVM213 = project
.in(file("target/rootJVM213"))
.settings(
crossScalaVersions := Nil,
publish / skip := true,
ideSkipProject := true
)
.settings(crossScalaVersions := Nil)
.aggregate({
val excluded: Set[ProjectReference] = Set(clientJS, clientNative, clientLaminext, codegenSbt)
allProjects.filterNot(excluded.contains)
} *)

lazy val rootJVM3 = project
.in(file("target/rootJVM3"))
.settings(
crossScalaVersions := Nil,
publish / skip := true,
ideSkipProject := true
)
.aggregate({
val excluded: Set[ProjectReference] = Set(clientJS, clientNative, clientLaminext, codegenSbt, akkaHttp)
allProjects.filterNot(excluded.contains)
} *)

lazy val macros = project
.in(file("macros"))
.settings(name := "caliban-macros")
Expand Down