sbt, the interactive build tool
Go to file
eugene yokota d2ac3e6fd7
Merge pull request #4 from exoego/scala-js-support
Add Scala.js support
2019-05-09 07:50:47 -04:00
project Update sbt 2019-05-08 16:23:13 +09:00
src Implement Scala.js support 2019-05-09 06:50:23 +09:00
.travis.yml Update sbt path 2019-05-08 16:44:00 +09:00
LICENSE license 2018-06-23 22:32:32 -04:00
README.markdown intitial import 2018-06-23 22:35:09 -04:00
build.sbt intitial import 2018-06-23 22:35:09 -04:00

README.markdown

sbt-projectmatrix

cross building using subprojects.

This is an experimental plugin that implements better cross building.

setup

Requirements: Requires sbt 1.2.0-M1 or above.

In project/plugins.sbt:

addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.1.0")

usage

To use projectMatrix:

lazy val core = (projectMatrix in file("core"))
  .scalaVersions("2.12.6", "2.11.12")
  .settings(
    name := "core"
  )
  .jvmPlatform()

lazy val app = (projectMatrix in file("app"))
  .dependsOn(core)
  .scalaVersions("2.12.6")
  .settings(
    name := "app"
  )
  .jvmPlatform()

This sets up basic project matrices one supporting both 2.11 and 2.12, and the other supporting only 2.12.

license

MIT License