@@ -3,7 +3,7 @@ import com.typesafe.tools.mima.core._
3
3
inThisBuild(
4
4
List (
5
5
scalaVersion := " 2.12.20" ,
6
- crossScalaVersions := Seq (" 2.12.20" , " 2.13.15" ),
6
+ crossScalaVersions := Seq (" 2.12.20" , " 2.13.15" , " 3.3.4 " ),
7
7
scalacOptions ++= List (" -release" , " 8" ),
8
8
javacOptions ++= List (" -target" , " 8" , " -source" , " 8" ),
9
9
organization := " com.thesamet.scalapb"
@@ -28,9 +28,15 @@ lazy val bridge: Project = project
28
28
" org.scalatestplus" %% " scalacheck-1-16" % " 3.2.14.0" % " test" ,
29
29
" org.scalatest" %% " scalatest" % " 3.2.19" % " test" ,
30
30
" org.scalacheck" %% " scalacheck" % " 1.18.1" % " test" ,
31
- " org.scala-lang.modules" %% " scala-collection-compat" % " 2.12.0" % " test" ,
32
- " io.get-coursier" %% " coursier" % coursierVersion % " test"
31
+ " io.get-coursier" %% " coursier" % coursierVersion % " test" cross CrossVersion .for3Use2_13
33
32
),
33
+ conflictWarning := {
34
+ if (scalaBinaryVersion.value == " 3" ) {
35
+ ConflictWarning (" warn" , Level .Warn , false )
36
+ } else {
37
+ conflictWarning.value
38
+ }
39
+ },
34
40
scalacOptions ++= (if (scalaVersion.value.startsWith(" 2.13." ))
35
41
Seq (" -Wconf:origin=.*JavaConverters.*:s" )
36
42
else Nil ),
@@ -51,8 +57,15 @@ lazy val protocCacheCoursier = project
51
57
.dependsOn(bridge)
52
58
.settings(
53
59
name := " protoc-cache-coursier" ,
60
+ conflictWarning := {
61
+ if (scalaBinaryVersion.value == " 3" ) {
62
+ ConflictWarning (" warn" , Level .Warn , false )
63
+ } else {
64
+ conflictWarning.value
65
+ }
66
+ },
54
67
libraryDependencies ++= Seq (
55
- " io.get-coursier" %% " coursier" % coursierVersion
68
+ " io.get-coursier" %% " coursier" % coursierVersion cross CrossVersion .for3Use2_13
56
69
)
57
70
)
58
71
@@ -61,6 +74,13 @@ lazy val protocGen = project
61
74
.dependsOn(bridge % " compile->compile;test->test" )
62
75
.settings(
63
76
name := " protoc-gen" ,
77
+ conflictWarning := {
78
+ if (scalaBinaryVersion.value == " 3" ) {
79
+ ConflictWarning (" warn" , Level .Warn , false )
80
+ } else {
81
+ conflictWarning.value
82
+ }
83
+ },
64
84
libraryDependencies ++= Seq (
65
85
protobufJava % " provided"
66
86
),
0 commit comments