@@ -17,10 +17,22 @@ inThisBuild(
17
17
val ScalaLTS = " 3.3.4"
18
18
val ScalaNext = " 3.5.2"
19
19
20
+ val jsoniterVersion = " 2.32.0"
21
+
20
22
ThisBuild / scalaVersion := ScalaNext
21
23
ThisBuild / versionScheme := Some (" early-semver" )
22
24
23
25
import scala .sys .process .*
26
+ import scala .util .chaining .*
27
+
28
+ // Workaround for https://github.com/coursier/coursier/issues/2001
29
+ // from https://github.com/coursier/coursier/issues/2001#issuecomment-2556556628
30
+ def jsoniterFix (deps : Seq [ModuleID ]) =
31
+ deps.map(
32
+ _.exclude(" com.github.plokhotnyuk.jsoniter-scala" , " jsoniter-scala-core_3" )
33
+ ) ++ Seq (
34
+ " com.github.plokhotnyuk.jsoniter-scala" % " jsoniter-scala-core_2.13" % jsoniterVersion
35
+ )
24
36
25
37
def crossPlugin (
26
38
x : sbt.librarymanagement.ModuleID
@@ -88,7 +100,7 @@ def module(
88
100
lazy val pluginCore = module(" plugin-core" ).settings(
89
101
libraryDependencies ++= Seq (
90
102
" com.disneystreaming.smithy4s" %% " smithy4s-http4s" % smithy4sVersion.value
91
- ),
103
+ ).pipe(jsoniterFix) ,
92
104
// mimaPreviousArtifacts := Set(organization.value %% name.value % "0.7.0"),
93
105
mimaPreviousArtifacts := Set .empty,
94
106
scalaVersion := ScalaLTS ,
@@ -163,14 +175,14 @@ lazy val core = module("core")
163
175
.settings(
164
176
libraryDependencies ++= Seq (
165
177
" org.typelevel" %% " cats-effect" % " 3.5.7" ,
166
- " com.github.plokhotnyuk.jsoniter-scala" %% " jsoniter-scala-macros" % " 2.32.0 " ,
178
+ " com.github.plokhotnyuk.jsoniter-scala" %% " jsoniter-scala-macros" % jsoniterVersion ,
167
179
" com.disneystreaming.smithy4s" %% " smithy4s-dynamic" % smithy4sVersion.value,
168
180
" com.disneystreaming.smithy4s" %% " smithy4s-http4s" % smithy4sVersion.value,
169
181
" com.disneystreaming.smithy4s" %% " smithy4s-aws-http4s" % smithy4sVersion.value,
170
182
" com.disneystreaming.smithy4s" % " smithy4s-protocol" % smithy4sVersion.value % Test ,
171
183
" com.disneystreaming.alloy" % " alloy-core" % " 0.3.14" % Test ,
172
184
" software.amazon.smithy" % " smithy-aws-traits" % " 1.53.0" % Test ,
173
- )
185
+ ).pipe(jsoniterFix)
174
186
)
175
187
.dependsOn(
176
188
protocol4s,
@@ -194,12 +206,10 @@ lazy val lsp = module("lsp")
194
206
" io.circe" %% " circe-core" % " 0.14.10" ,
195
207
" org.http4s" %% " http4s-ember-client" % " 0.23.30" ,
196
208
" org.http4s" %% " http4s-ember-server" % " 0.23.30" % Test ,
197
- (" io.get-coursier" % " coursier" % " 2.1.14" )
198
- .cross(CrossVersion .for3Use2_13)
199
- .exclude(" org.scala-lang.modules" , " scala-collection-compat_2.13" )
200
- .exclude(" com.github.plokhotnyuk.jsoniter-scala" , " jsoniter-scala-core_2.13" ),
209
+ (" io.get-coursier" % " coursier_2.13" % " 2.1.22" )
210
+ .exclude(" org.scala-lang.modules" , " scala-collection-compat_2.13" ),
201
211
" org.typelevel" %% " cats-tagless-core" % " 0.16.2" ,
202
- ),
212
+ ).pipe(jsoniterFix) ,
203
213
buildInfoPackage := " playground.lsp.buildinfo" ,
204
214
buildInfoKeys ++= Seq (version, scalaBinaryVersion),
205
215
(Test / test) := {
0 commit comments