@@ -98,7 +98,7 @@ val defaultScala3EnabledSettings = Seq(
98
98
99
99
// Our dependencies or compiler options may differ for both Scala 2 and 3. We branch here
100
100
// to account for there differences but should merge these artifacts as they are updated.
101
- val scalaDependencies = Seq (" org.scala-lang.modules" %% " scala-collection-compat" % " 2.4.4 " )
101
+ val scalaDependencies = Seq (" org.scala-lang.modules" %% " scala-collection-compat" % " 2.7.0 " )
102
102
val scala2cOptions = Seq (
103
103
" -target:jvm-1.8" ,
104
104
// Needs -missing-interpolator due to https://issues.scala-lang.org/browse/SI-8761
@@ -210,13 +210,15 @@ val baseSettings = Seq(
210
210
val sharedSettings =
211
211
baseSettings ++
212
212
defaultScalaSettings ++
213
- Seq (libraryDependencies ++= scala2Dependencies)
213
+ Seq (libraryDependencies ++= scala2Dependencies) ++
214
+ // This doesn't really do much except when trying to compile modules with Scala 3 which don't support it yet,
215
+ // instead of failing during "update" due to conflicting _2.13 _3 suffixes it will fail during compilation.
216
+ Seq (excludeDependencies ++= Seq (" org.scala-lang.modules" % " scala-collection-compat_3" ))
214
217
215
218
val sharedScala3EnabledSettings =
216
219
baseSettings ++
217
220
defaultScala3EnabledSettings ++
218
- Seq (libraryDependencies ++= scala3Dependencies) ++
219
- Seq (excludeDependencies ++= Seq (" org.scala-lang.modules" % " scala-collection-compat_3" ))
221
+ Seq (libraryDependencies ++= scala3Dependencies)
220
222
221
223
// settings for projects that are cross compiled with scala 2.10
222
224
val settingsCrossCompiledWithTwoTen =
@@ -461,7 +463,7 @@ lazy val utilFunction = Project(
461
463
id = " util-function" ,
462
464
base = file(" util-function" )
463
465
).settings(
464
- sharedSettings
466
+ sharedScala3EnabledSettings
465
467
).settings(
466
468
name := " util-function"
467
469
)
@@ -718,7 +720,7 @@ lazy val utilTunable = Project(
718
720
id = " util-tunable" ,
719
721
base = file(" util-tunable" )
720
722
).settings(
721
- sharedSettings
723
+ sharedScala3EnabledSettings
722
724
).settings(
723
725
name := " util-tunable" ,
724
726
libraryDependencies ++= Seq (
0 commit comments