sbt, the interactive build tool
Go to file
Eugene Yokota b520cc5517 add crossLibrary
It's a thin layer around custom, but specifically created for cross library building.

Ref #2
2019-05-09 09:34:46 -04:00
project Update sbt 2019-05-08 16:23:13 +09:00
src add crossLibrary 2019-05-09 09:34:46 -04: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 move Scala version into row definition 2019-05-09 08:46:02 -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