forked from rudogma/scala-supertagged
/
build.sbt
47 lines (39 loc) · 1.29 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import sbt._
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
releaseCrossBuild := true
publishMavenStyle := true
pomIncludeRepository := (_ => false)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
parallelExecution in ThisBuild := false
lazy val defaultSettings =
Project.defaultSettings ++
Compiler.defaultSettings ++
Publish.defaultSettings ++
Tests.defaultSettings ++
Console.defaultSettings
lazy val supertagged = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Full)
.in(file("."))
.settings(defaultSettings: _*)
.jsSettings(
crossScalaVersions := Versions.ScalaCross,
parallelExecution in Test := false
)
lazy val root = project.in(file("."))
.settings(defaultSettings: _*)
.settings(
name := "supertagged",
publish := {},
publishLocal := {},
publishArtifact := false
)
.aggregate(supertaggedJVM, supertaggedJS)
lazy val supertaggedJVM = supertagged.jvm
lazy val supertaggedJS = supertagged.js
lazy val supertaggedNative = supertagged.native.settings(Project.moduleNativeSettings : _*)
/*
* Uncomment, if You need scala.native version and manually publish it locally
*/
//lazy val supertaggedNative = supertagged.native.settings(
// sources in (Compile,doc) := Seq.empty
//)