Skip to content

Commit 2888d76

Browse files
committed
Bump Scala, spire versions; clean up build
1 parent 8f492ee commit 2888d76

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

build.sbt

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
22

33
//val dottyVersion = dottyLatestNightlyBuild.get
4-
val dottyVersion = "3.1.0-RC3"
5-
val spireVersion = "0.17.0"
4+
val dottyVersion = "3.1.0"
5+
val spireVersion = "0.18.0-M1"
66
val scalaTestVersion = "3.2.10"
77

88
scalaVersion := dottyVersion
99

1010
lazy val commonSettings = Seq(
11-
// scalaJSUseMainModuleInitializer := true, //Test only
1211
organization := "org.emergentorder.onnx",
1312
version := "0.15.0",
1413
scalaVersion := dottyVersion,
@@ -17,7 +16,6 @@ lazy val commonSettings = Seq(
1716
updateOptions := updateOptions.value.withLatestSnapshots(false),
1817
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation"),
1918
autoCompilerPlugins := true
20-
// sources in (Compile, doc) := Seq(), //Bug w/ Dotty & JS on doc
2119
) ++ sonatypeSettings
2220

2321
lazy val common = (crossProject(JSPlatform, JVMPlatform)
@@ -51,16 +49,9 @@ lazy val proto = (crossProject(JSPlatform, JVMPlatform)
5149
lazy val backends = (crossProject(JVMPlatform, JSPlatform)
5250
.crossType(CrossType.Pure) in file("backends"))
5351
.dependsOn(core)
54-
//conditionally enabling/disable based on version, still not working
55-
// .enablePlugins(ScalablyTypedConverterPlugin)
5652
.settings(
5753
commonSettings,
5854
name := "onnx-scala-backends",
59-
// excludeFilter in unmanagedSources := (CrossVersion
60-
// .partialVersion(scalaVersion.value) match {
61-
// case _ => "Main.scala" | "ONNXJSOperatorBackend.scala"
62-
// }),
63-
// scalacOptions ++= { if (isDotty.value) Seq("-source:3.0-migration") else Nil },
6455
libraryDependencies ++= Seq(
6556
"com.microsoft.onnxruntime" % "onnxruntime" % "1.9.0"
6657
),
@@ -72,11 +63,8 @@ lazy val backends = (crossProject(JVMPlatform, JSPlatform)
7263
)
7364
.jsSettings(scalaJSUseMainModuleInitializer := true, //, //Testing
7465
npmDependencies in Compile += "onnxruntime-web" -> "1.9.0")
75-
//Seems to be a bundling issue, copying things manually seems to work
76-
//TODO NEW: try JS, bundler and converter beta/RC are out
77-
// npmDependencies in Compile += "onnxjs" -> "0.1.8")
7866
.jsConfigure { project => project.enablePlugins(ScalablyTypedConverterPlugin)}
79-
//ScalaJSBundlerPlugin)} //,ScalablyTypedConverterPlugin) }
67+
8068

8169
lazy val core = (crossProject(JSPlatform, JVMPlatform)
8270
.crossType(CrossType.Pure) in file("core"))
@@ -85,15 +73,14 @@ lazy val core = (crossProject(JSPlatform, JVMPlatform)
8573
.settings(
8674
commonSettings,
8775
name := "onnx-scala",
88-
// scalacOptions ++= { if (isDotty.value) Seq("-source:3.0-migration") else Nil },
8976
crossScalaVersions := Seq(
9077
dottyVersion
9178
),
9279
libraryDependencies ++= (CrossVersion
9380
.partialVersion(scalaVersion.value) match {
9481
case _ =>
9582
Seq(
96-
("org.typelevel" %%% "spire" % spireVersion).cross(CrossVersion.for3Use2_13)
83+
("org.typelevel" %%% "spire" % spireVersion)
9784
)
9885
})
9986
)

0 commit comments

Comments
 (0)