forked from portable-scala/sbt-crossproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
79 lines (73 loc) · 2.34 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import Extra._
inThisBuild(
Def.settings(
scalaVersion := "2.12.10"
))
lazy val `sbt-crossproject-root` =
project
.in(file("."))
.aggregate(`sbt-scalajs-crossproject`,
`sbt-scala-native-crossproject`,
`sbt-crossproject`,
`sbt-crossproject-test`)
.dependsOn(`sbt-scalajs-crossproject`,
`sbt-scala-native-crossproject`,
`sbt-crossproject`,
`sbt-crossproject-test`)
.settings(noPublishSettings)
lazy val `sbt-scalajs-crossproject` =
project
.in(file("sbt-scalajs-crossproject"))
.enablePlugins(SbtPlugin)
.settings(sbtPluginSettings)
.settings(
moduleName := "sbt-scalajs-crossproject",
addSbtPlugin("org.portable-scala" % "sbt-platform-deps" % "1.0.0"),
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")
)
.settings(publishSettings)
.dependsOn(`sbt-crossproject`)
lazy val `sbt-scala-native-crossproject` =
project
.in(file("sbt-scala-native-crossproject"))
.enablePlugins(SbtPlugin)
.settings(sbtPluginSettings)
.settings(
moduleName := "sbt-scala-native-crossproject",
addSbtPlugin("org.portable-scala" % "sbt-platform-deps" % "1.0.0"),
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.7")
)
.settings(publishSettings)
.dependsOn(`sbt-crossproject`)
lazy val `sbt-crossproject` =
project
.in(file("sbt-crossproject"))
.enablePlugins(SbtPlugin)
.settings(moduleName := "sbt-crossproject")
.settings(sbtPluginSettings)
.settings(scaladocFromReadme)
.settings(publishSettings)
.settings(
addSbtPlugin("org.portable-scala" % "sbt-platform-deps" % "1.0.0")
)
lazy val `sbt-crossproject-test` =
project
.in(file("sbt-crossproject-test"))
.enablePlugins(SbtPlugin) // for scripted
.settings(sbtPluginSettings)
.settings(noPublishSettings)
.settings(
scriptedLaunchOpts ++= Seq(
"-Dplugin.version=" + version.value,
"-Dplugin.sn-version=0.3.7",
"-Dplugin.sjs-version=0.6.23"
),
scripted := scripted
.dependsOn(
`sbt-crossproject` / publishLocal,
`sbt-scalajs-crossproject` / publishLocal,
`sbt-scala-native-crossproject` / publishLocal
)
.evaluated
)
.settings(duplicateProjectFolders)