bwbecker@bwbmac sbtDebug % sbt
[info] welcome to sbt 1.9.8 (Homebrew Java 11.0.19)
[info] loading settings for project global-plugins from plugins.sbt ...
[info] loading global plugins from /Users/bwbecker/.sbt/1.0/plugins
[info] loading settings for project sbtdebug-build from plugins.sbt ...
[info] loading project definition from /Users/bwbecker/temp/sbtDebug/project
java.lang.NoClassDefFoundError: org/webjars/WebJarExtractor$Cache
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at sbt.internal.inc.ModuleUtilities$.getObject(ModuleUtilities.scala:24)
Changing the version of sbt-web-scalajs to 1.3.0 resolves the problem.
Alternatively, leave sbt-web-scalajs at 1.1.0 and revert addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.1") to 2.8.21 and add
Conclusion: sbt-web-scalajs and sbt-plugin need to be upgraded together. Ideally, this would be checked with a warning. At least document the incompatibility.
Continuing to debug #193, this may be related:
In an otherwise empty directory, create
build.sbt
,project/plugins.sbt
andproject/build.properties
with the following contents:Run sbt:
Changing the version of
sbt-web-scalajs
to 1.3.0 resolves the problem.Alternatively, leave
sbt-web-scalajs
at 1.1.0 and revertaddSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.1")
to2.8.21
and addThis also works.
Conclusion:
sbt-web-scalajs
andsbt-plugin
need to be upgraded together. Ideally, this would be checked with a warning. At least document the incompatibility.