diff options
author | Jakob Odersky <jakob@odersky.com> | 2018-10-31 01:59:56 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-10-31 02:00:26 -0700 |
commit | 5a59e784e58e14a8c3634969674369839c5ee26e (patch) | |
tree | cc5c5332d6b84cd0a351b4bb36e1f16a564c9986 /build.sbt | |
download | identicon-5a59e784e58e14a8c3634969674369839c5ee26e.tar.gz identicon-5a59e784e58e14a8c3634969674369839c5ee26e.tar.bz2 identicon-5a59e784e58e14a8c3634969674369839c5ee26e.zip |
Initial commit
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt new file mode 100644 index 0000000..74d5822 --- /dev/null +++ b/build.sbt @@ -0,0 +1,24 @@ +// shadow sbt-scalajs' crossProject and CrossType from Scala.js 0.6.x +import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType} + +version in ThisBuild := { + import sys.process._ + ("git describe --always --dirty=-SNAPSHOT --match v[0-9].*" !!).tail.trim +} + +lazy val identicon = crossProject(JSPlatform, JVMPlatform, NativePlatform) + .crossType(CrossType.Full) + .in(file(".")) + .settings( + scalacOptions in Compile += "-deprecation", + scalaVersion := crossScalaVersions.value.head + ) + .jvmSettings( + crossScalaVersions := "2.13.0-M5" :: "2.12.7" :: "2.11.12" :: Nil + ) + .jsSettings( + crossScalaVersions := "2.12.6" :: "2.11.12" :: Nil + ) + .nativeSettings( + crossScalaVersions := "2.11.12" :: Nil + ) |