Skip to content

Commit b736076

Browse files
authored
Use cross dependencies for all js projects (#4803)
I've hit it for `tapir-apispec-docs` where it brough me JVM stdlib instead of JS one, which in turn caused > [warn] package scala contains object and package with same name: caps. [warn] This indicates that there are several versions of the Scala standard library on the classpath. [warn] The build should be reconfigured so that only one version of the standard library is on the classpath. <img width="512" height="115" alt="Screenshot 2025-09-09 at 08 28 38" src="https://github.com/user-attachments/assets/d82eeb3c-6747-42fa-b38d-f5058c41a0b1" /> I tried to go through all the js-configured project and fix the deps everywhere, even though I need only apispec-docs right now.
1 parent 34db87d commit b736076

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build.sbt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,9 +1154,9 @@ lazy val apispecDocs: ProjectMatrix = (projectMatrix in file("docs/apispec-docs"
11541154
.settings(
11551155
name := "tapir-apispec-docs",
11561156
libraryDependencies ++= Seq(
1157-
"com.softwaremill.sttp.apispec" %% "asyncapi-model" % Versions.sttpApispec,
1158-
"com.softwaremill.sttp.apispec" %% "jsonschema-circe" % Versions.sttpApispec % Test,
1159-
"io.circe" %% "circe-literal" % Versions.circe % Test
1157+
"com.softwaremill.sttp.apispec" %%% "asyncapi-model" % Versions.sttpApispec,
1158+
"com.softwaremill.sttp.apispec" %%% "jsonschema-circe" % Versions.sttpApispec % Test,
1159+
"io.circe" %%% "circe-literal" % Versions.circe % Test
11601160
)
11611161
)
11621162
.jvmPlatform(
@@ -1175,7 +1175,7 @@ lazy val openapiDocs: ProjectMatrix = (projectMatrix in file("docs/openapi-docs"
11751175
name := "tapir-openapi-docs",
11761176
libraryDependencies ++= Seq(
11771177
"com.softwaremill.quicklens" %%% "quicklens" % Versions.quicklens,
1178-
"com.softwaremill.sttp.apispec" %% "openapi-model" % Versions.sttpApispec,
1178+
"com.softwaremill.sttp.apispec" %%% "openapi-model" % Versions.sttpApispec,
11791179
"com.softwaremill.sttp.apispec" %% "openapi-circe-yaml" % Versions.sttpApispec % Test
11801180
)
11811181
)
@@ -1195,8 +1195,8 @@ lazy val openapiVerifier: ProjectMatrix = (projectMatrix in file("docs/openapi-v
11951195
name := "tapir-openapi-verifier",
11961196
libraryDependencies ++= Seq(
11971197
"com.softwaremill.sttp.apispec" %% "openapi-circe-yaml" % Versions.sttpApispec % Test,
1198-
"com.softwaremill.sttp.apispec" %% "openapi-circe" % Versions.sttpApispec,
1199-
"io.circe" %% "circe-parser" % Versions.circe,
1198+
"com.softwaremill.sttp.apispec" %%% "openapi-circe" % Versions.sttpApispec,
1199+
"io.circe" %%% "circe-parser" % Versions.circe,
12001200
"io.circe" %% "circe-yaml" % Versions.circeYaml
12011201
)
12021202
)
@@ -1754,7 +1754,7 @@ lazy val awsLambdaCatsEffect: ProjectMatrix = (projectMatrix in file("serverless
17541754
.settings(
17551755
name := "tapir-aws-lambda",
17561756
libraryDependencies ++= Seq(
1757-
"com.softwaremill.sttp.client4" %% "fs2" % Versions.sttp4,
1757+
"com.softwaremill.sttp.client4" %%% "fs2" % Versions.sttp4,
17581758
"com.amazonaws" % "aws-lambda-java-runtime-interface-client" % Versions.awsLambdaInterface,
17591759
slf4j
17601760
)

0 commit comments

Comments
 (0)