Skip to content

Provide a way to enable plugins per platform #52

Open
@thesamet

Description

@thesamet

It would be desirable to have a way (or if one already exists to document it), to enable an sbt plugin for a specific platform in the matrix. For example, scalajs-bundler's instructions suggest to install like this:

lazy val cross = crossProject(JSPlatform, JVMPlatform).in(file("."))
  .jvmSettings(BuildSettings.jvmSettings)
  .jsSettings(BuildSettings.jsSettings)
  .jsConfigure { project => project.enablePlugins(ScalaJSBundlerPlugin) }

It looks like the only way in sbt-projectmatrix right now to transform a Project is by calling customRow() directly, however that would require me to copy-paste the definition of jsPlatform in my own SBT build and modify it accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions