Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use ThisBuild scope with Scala.js modules #33

Open
julienrf opened this issue Sep 4, 2020 · 0 comments
Open

Unable to use ThisBuild scope with Scala.js modules #33

julienrf opened this issue Sep 4, 2020 · 0 comments
Assignees

Comments

@julienrf
Copy link
Collaborator

julienrf commented Sep 4, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant