@@ -44,7 +44,7 @@ lazy val proto = (crossProject(JSPlatform, JVMPlatform)
44
44
scala213Version
45
45
),
46
46
libraryDependencies -= (" com.thesamet.scalapb" %%% " scalapb-runtime" % scalapb.compiler.Version .scalapbVersion),
47
- libraryDependencies += (" com.thesamet.scalapb" %%% " scalapb-runtime" % scalapb.compiler.Version .scalapbVersion).withDottyCompat(scalaVersion.value ),
47
+ libraryDependencies += (" com.thesamet.scalapb" %%% " scalapb-runtime" % scalapb.compiler.Version .scalapbVersion).cross( CrossVersion .for3Use2_13 ),
48
48
PB .targets in Compile := Seq (
49
49
scalapb.gen() -> (sourceManaged in Compile ).value
50
50
),
@@ -73,7 +73,7 @@ lazy val backends = (crossProject(JVMPlatform, JSPlatform)
73
73
" Main.scala" | " ONNXJSOperatorBackend.scala"
74
74
}
75
75
),
76
- scalacOptions ++= { if (isDotty.value) Seq (" -source:3.0-migration" ) else Nil },
76
+ // scalacOptions ++= { if (isDotty.value) Seq("-source:3.0-migration") else Nil },
77
77
libraryDependencies ++= Seq (
78
78
" com.microsoft.onnxruntime" % " onnxruntime" % " 1.7.0"
79
79
),
@@ -98,7 +98,7 @@ lazy val core = (crossProject(JSPlatform, JVMPlatform)
98
98
.settings(
99
99
commonSettings,
100
100
name := " onnx-scala" ,
101
- scalacOptions ++= { if (isDotty.value) Seq (" -source:3.0-migration" ) else Nil },
101
+ // scalacOptions ++= { if (isDotty.value) Seq("-source:3.0-migration") else Nil },
102
102
excludeFilter in unmanagedSources := (CrossVersion
103
103
.partialVersion(scalaVersion.value) match {
104
104
case Some ((2 , 13 )) => " ONNX.scala" | " OpToONNXBytesConverter.scala" | " Tensors.scala" | " ONNXBytesDataSource.scala"
@@ -117,7 +117,7 @@ lazy val core = (crossProject(JSPlatform, JVMPlatform)
117
117
)
118
118
case _ =>
119
119
Seq (
120
- (" org.typelevel" %%% " spire" % spireVersion).withDottyCompat(dottyVersion ),
120
+ (" org.typelevel" %%% " spire" % spireVersion).cross( CrossVersion .for3Use2_13 ),
121
121
)
122
122
})
123
123
)
0 commit comments