These are chat archives for sbt/sbt
A relaxed chat room about sbt (That interactive build tool). For getting help on sbt, we encourage people to document it on Stackoverflow or subscribing to Lightbend subscription.
sbt-scoverage- that can be used for either/or a JVM/scala.js project, I don't want users of the plugin to pull in scala.js if they only have a JVM project. For libraries, it's easy - just use
%%for a JVM only project or
%%%for a mixed/JS only project. Does a similar framework exist for sbt plugins, too?
sbt-scoverageplugin will see the scala-js plugin downloaded
libraryDependencies.value.exists(_.name == "scalajs-library")
%%%and hand crafting the full sjs name
sbt-platformplugin could add
if (Platform.isJS) Platform.qualify(libname)where
_sjs0.6.12bits. Same for llvm,etc. Saves this - https://github.com/scoverage/sbt-scoverage/pull/166/files#diff-627f9fd5c400939149d75695caad1988R68
the sbt scoverage plugin depends on scala js plugin
Yeah - conditionally though. Or rather, optionally
but sbt plugins. don't. have conditional. dependencies