kenji yoshida
kenji yoshida
## steps `project/build.properties` ```properties sbt.version=2.0.0-M2 ``` `build.sbt` ```scala inline def inlineDef: Int = 2 TaskKey[Int]("x") := inlineDef ``` ## problem ``` -- [E007] Type Mismatch Error: inline-def-in-build-sbt-example/build.sbt:2:3 ----------------- 2 |...
## steps `build.sbt` ```scala val a1 = settingKey[Boolean]("") a1 := true Compile / sourceGenerators += { def x: String = "x" if (a1.value) { Def.task { streams.value.log.info(x) Seq.empty[File] }.taskValue }...
## steps `A.scala` ```scala package x class A ``` `build.sbt` ```scala scalaVersion := "3.3.3" ``` `project/build.properties` ```scala sbt.version=2.0.0-M2 ``` run `sbt doc` ## problem ``` [error] java.lang.RuntimeException: java.lang.ClassNotFoundException: dotty.tools.dottydoc.Main [error]...
## steps https://github.com/xuwei-k/sbt-2-InvalidClassException/commit/a4467091ae7418ff3dab6bc3806efd764455a4ad `build.sbt` ```scala scalaVersion := "3.3.4" Test / fork := true libraryDependencies += "org.scalatest" %% "scalatest-funsuite" % "3.2.19" % Test enablePlugins(SbtPlugin) pluginCrossBuild / sbtVersion := { scalaBinaryVersion.value match...
## steps `project/A.scala` ```scala import sbt.* import sbt.Keys.streams object A { def f1(x: Int): Def.Initialize[Task[Int]] = Def.task(x + 2) def f2: Def.Initialize[Task[Int]] = Def.taskDyn { val log = streams.value.log val...
## steps `a1/build.sbt` ```scala val a1 = project.in(file(".")) ``` `build.sbt` ```scala val root = project .in(file(".")) .dependsOn(ProjectRef(file("a1"), "a1")) ``` `project/build.properties` ```properties sbt.version=2.0.0-M2 ``` launch sbt https://github.com/xuwei-k/sbt-2-ProjectRef/commit/d95024648a7b78b906e3444a616ccf19f0659cb3 ## problem ``` [info]...
``` flyway-sbt/build.sbt:18: warning: method in in trait ScopingSetting is deprecated (since 1.5.0): `in` is deprecated; migrate to slash syntax - https://www.scala-sbt.org/1.x/docs/Migrating-from-sbt-013x.html#slash scalacOptions in (Compile, doc) ++= { ^ flyway-sbt/build.sbt:21: warning:...
https://www.scala-js.org/news/2024/09/28/announcing-scalajs-1.17.0/ https://github.com/scalaprops/scalaprops/blob/1d59823fc9df0b8f1336e7e7e6af75a88ede081b/scalaprops/js/src/main/scala/scalaprops/ScalapropsRunner.scala#L49-L51 maybe reflection does not work
- https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/net/URL.html#%3Cinit%3E(java.lang.String) - https://bugs.openjdk.org/browse/JDK-8295949 - https://github.com/openjdk/jdk/commit/4338f527aa81350e3636dcfbcd2eb17ddaad3914
prepare sbt 2.x - https://github.com/sbt/sbt/pull/7703