From 3fd37a4045466e9a36aefd50a49e30278ccae1fb Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 17 Aug 2024 13:52:46 +0000 Subject: [PATCH] Update scala3-compiler_3, scala3-library, ... to 3.5.1-RC2 --- build.sbt | 63 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 38 insertions(+), 25 deletions(-) diff --git a/build.sbt b/build.sbt index d5eebc2..8c8a0b2 100755 --- a/build.sbt +++ b/build.sbt @@ -14,7 +14,7 @@ lazy val commonSettings = Seq( resolvers += Resolver.mavenLocal, resolvers += "Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots", updateOptions := updateOptions.value.withLatestSnapshots(false), - libraryDependencies += "com.google.protobuf" % "protobuf-java" % "4.27.3", + libraryDependencies += "com.google.protobuf" % "protobuf-java" % "4.27.3", libraryDependencies += "org.scala-lang" % "scala3-compiler_3" % scalaVersion.value exclude ( "org.scala-sbt", "compiler-interface" @@ -75,7 +75,7 @@ val copyPackageNoExports = taskKey[Unit]("Copy package file without exports to t lazy val backends = (crossProject(JSPlatform, JVMPlatform) .crossType(CrossType.Pure) in file("backends")) .dependsOn(core) - .settings( + .settings( commonSettings, name := "onnx-scala-backends", mimaPreviousArtifacts := Set("org.emergent-order" %%% "onnx-scala-backends" % "0.17.0"), @@ -102,35 +102,48 @@ lazy val backends = (crossProject(JSPlatform, JVMPlatform) Compile / npmDependencies += "onnxruntime-common" -> "1.18.0", Compile / npmDependencies += "typescript" -> "5.4.5", copyIndexTs := { - import Path._ - - val src = new File(".") + import Path._ - // get the files we want to copy - val htmlFiles: Seq[File] = Seq(new File("index.d.ts")) + val src = new File(".") - // use Path.rebase to pair source files with target destination in crossTarget - val pairs = htmlFiles pair rebase(src, (Compile / target).value / "scala-3.5.0-RC7/scalajs-bundler/main/node_modules/onnxruntime-node/dist/types.d.ts") + // get the files we want to copy + val htmlFiles: Seq[File] = Seq(new File("index.d.ts")) - // Copy files to source files to target - IO.copy(pairs, CopyOptions.apply(overwrite = true, preserveLastModified = true, preserveExecutable = false)) + // use Path.rebase to pair source files with target destination in crossTarget + val pairs = htmlFiles pair rebase( + src, + (Compile / target).value / "scala-3.5.1-RC2/scalajs-bundler/main/node_modules/onnxruntime-node/dist/types.d.ts" + ) -}, + // Copy files to source files to target + IO.copy( + pairs, + CopyOptions + .apply(overwrite = true, preserveLastModified = true, preserveExecutable = false) + ) + }, copyPackageNoExports := { - import Path._ - - val src = new File(".") - - // get the files we want to copy - val htmlFiles: Seq[File] = Seq(new File("package.json")) - - // use Path.rebase to pair source files with target destination in crossTarget - val pairs = htmlFiles pair rebase(src, (Compile / target).value / "scala-3.5.0-RC7/scalajs-bundler/test/node_modules/onnxruntime-common") - - // Copy files to source files to target - IO.copy(pairs, CopyOptions.apply(overwrite = true, preserveLastModified = true, preserveExecutable = false)) -}, + import Path._ + + val src = new File(".") + + // get the files we want to copy + val htmlFiles: Seq[File] = Seq(new File("package.json")) + + // use Path.rebase to pair source files with target destination in crossTarget + val pairs = htmlFiles pair rebase( + src, + (Compile / target).value / "scala-3.5.1-RC2/scalajs-bundler/test/node_modules/onnxruntime-common" + ) + + // Copy files to source files to target + IO.copy( + pairs, + CopyOptions + .apply(overwrite = true, preserveLastModified = true, preserveExecutable = false) + ) + }, Compile / compile := (Compile / compile dependsOn (copyIndexTs, copyPackageNoExports)).value, libraryDependencies += "org.typelevel" %%% "cats-effect-testing-scalatest" % "1.5.0" % Test, stOutputPackage := "org.emergentorder.onnx",