sbt-version-policy icon indicating copy to clipboard operation
sbt-version-policy copied to clipboard

Unable to use ThisBuild scope with Scala.js modules

Open julienrf opened this issue 4 years ago • 0 comments

I find it convenient to scope the setting for declaring dependency rules to ThisBuild so that it is shared across my build.

However, this doesn’t work with Scala.js modules, which can produce Scala.js module ID with %%% only in the scope of a project that has the ScalaJSPlugin enabled.

For example, the following doesn’t work:

ThisBuild / versionPolicyDependencyRules ++= Seq(
  "org.scala-js" %%% "scalajs-dom" % "semver"
)

In such a case, we need to use a common setting, reused by each Scala.js project in the build.

I don’t think we can fix this, unfortunately. How could we improve the developer experience?

julienrf avatar Sep 04 '20 09:09 julienrf