Skip to content

Releases: portable-scala/sbt-crossproject

v1.3.2

06 Jul 20:11
b7d4a97
Compare
Choose a tag to compare
  • Publish with sbt 1.9.x so that sbt plugins are dual-published with legacy and compliant Maven coordinates.

sbt-crossproject v1.3.1

17 Apr 15:21
c030519
Compare
Choose a tag to compare
  • Fix crossProjectBaseDirectory to be an absolute file (like baseDirectory) and to also work in crossProjects with an explicit .in(...) modifier. (#156)

sbt-crossproject v1.3.0

06 Apr 09:29
a07d717
Compare
Choose a tag to compare

This release adds two new settings, intended for read only:

  • crossProjectCrossType gives access to the CrossType of the enclosing crossProject.
  • crossProjectBaseDirectory gives access to the base directory of the enclosing crossProject

By "enclosing crossProject", we mean the crossProject that generates the current project. These settings are mostly useful for other sbt plugins that want to generically handle crossProjects.

sbt-crossproject v1.2.0

22 Mar 15:01
Compare
Choose a tag to compare

This release adds the following new features:

  • Partially shared source and resource directories: in a JVM-JS-Native project, sources that are common to two platforms (e.g., JVM and JS) can be put in foo/js-jvm/src/.... The platforms are ordered lexicographically.

sbt-crossproject v1.1.0

05 Jul 08:47
Compare
Choose a tag to compare

This version adds the following features:

  • Add support for shared epoch-dependent directories: shared/src/scala-2/ or shared/src/scala-3/, depending on the version of Scala
  • Add support for shared resource directories: shared/src/resources/
  • Add platform-dependent variants of enablePlugins, for example jsEnablePlugins

In addition, it contains the two following "meta" changes:

  • Configure versionScheme to "semver-spec"
  • Publish to Maven Central instead of Bintray

sbt-crossproject 1.0.0

04 May 14:11
Compare
Choose a tag to compare

This release drops support for sbt 0.13.x. It brings nothing new.

Breaking changes

  • Drop support for sbt 0.13.x

sbt-crossproject 0.6.1

04 May 14:09
Compare
Choose a tag to compare

This release adds the ability to detect the platform within settings in a crossProject.

Improvements

Reading

crossProjectPlatform.value

will return the Platform for which the settings are being applied. Possible values are JVMPlatform, JSPlatform and NativePlatform (or any custom platform given as argument to crossProject(...).

sbt-crossproject 0.6.0

09 Aug 14:37
Compare
Choose a tag to compare

This release relieves users of sbt 1.x from the boilerplate lazy val fooJVM = foo.jvm (and similar). It requires sbt 1.2.1 or later in the 1.x branch.

Breaking changes

  • sbt 1.2.1 or later is required if you use sbt 1.x (as before, sbt 0.13.17+ is required if you use 0.13.x)

Improvements

When using sbt 1.x, it is no longer necessary to write the boilerplate

lazy val fooJVM = foo.jvm
lazy val fooJS = foo.js
lazy val fooNative = foo.native

after the definition of a

lazy val foo = crossProject(...)...

sbt-crossproject 0.5.0

14 Jun 09:42
Compare
Choose a tag to compare

This is mostly a simplifying release, taking advantage of the improvements that have made their way to sbt-scalanative 0.3.7 and sbt-scalajs 0.6.23.

Breaking changes

  • sbt-scalajs-crossproject 0.5.0 requires sbt-scalajs >= 0.6.23 (or >= 1.0.0-M2). As a reminder, sbt-scalanative-crossproject requires sbt-scalanative >= 0.3.7 since v0.4.0.
  • The result type of CrossProject.Builder.crossType has changed from CrossProject to Builder, so that it can be chained with further Builder methods such as withoutSuffixFor (#93). This is usually not an issue as there is an implicit conversion from CrossProject.Builder to CrossProject. However, if you happen to directly assign the result of crossType() to a lazy val foo = ..., without subsequent calls to .settings(), and without an explicit type like : CrossProject, your build might cease to properly function. You can fix this with an explicit call to .build() or with an explicit : CrossProject.
  • All the APIs that were deprecated since v0.3.0 have been removed.

sbt-crossproject 0.4.0

29 Mar 14:38
f5b6fc7
Compare
Choose a tag to compare
  • Introduce sbt-scala-native-crossproject, see README for details
  • Move JSPlatform back to scalajscrossproject