@@ -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,31 @@ 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
+ },
40
+ Test / testOptions ++= {
41
+ scalaBinaryVersion.value match {
42
+ case " 2.12" =>
43
+ Nil
44
+ case _ =>
45
+ // TODO
46
+ Seq (
47
+ Tests .Exclude (
48
+ Set (
49
+ " protocbridge.codegen.CodeGenAppSpec" ,
50
+ " protocbridge.ProtocCacheSpec"
51
+ )
52
+ )
53
+ )
54
+ }
55
+ },
34
56
scalacOptions ++= (if (scalaVersion.value.startsWith(" 2.13." ))
35
57
Seq (" -Wconf:origin=.*JavaConverters.*:s" )
36
58
else Nil ),
@@ -51,8 +73,15 @@ lazy val protocCacheCoursier = project
51
73
.dependsOn(bridge)
52
74
.settings(
53
75
name := " protoc-cache-coursier" ,
76
+ conflictWarning := {
77
+ if (scalaBinaryVersion.value == " 3" ) {
78
+ ConflictWarning (" warn" , Level .Warn , false )
79
+ } else {
80
+ conflictWarning.value
81
+ }
82
+ },
54
83
libraryDependencies ++= Seq (
55
- " io.get-coursier" %% " coursier" % coursierVersion
84
+ " io.get-coursier" %% " coursier" % coursierVersion cross CrossVersion .for3Use2_13
56
85
)
57
86
)
58
87
@@ -61,6 +90,13 @@ lazy val protocGen = project
61
90
.dependsOn(bridge % " compile->compile;test->test" )
62
91
.settings(
63
92
name := " protoc-gen" ,
93
+ conflictWarning := {
94
+ if (scalaBinaryVersion.value == " 3" ) {
95
+ ConflictWarning (" warn" , Level .Warn , false )
96
+ } else {
97
+ conflictWarning.value
98
+ }
99
+ },
64
100
libraryDependencies ++= Seq (
65
101
protobufJava % " provided"
66
102
),
0 commit comments