-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathbuild.sbt
98 lines (92 loc) · 2.83 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import Extra._
inThisBuild(
Def.settings(
scalaVersion := "2.12.10",
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-feature",
"-encoding",
"utf8"
),
organization := "org.portable-scala",
versionScheme := Some("semver-spec"),
homepage := Some(
url("https://github.com/portable-scala/sbt-crossproject")),
licenses := Seq(
"BSD-like" -> url("http://www.scala-lang.org/downloads/license.html")
),
scmInfo := Some(
ScmInfo(
url("https://github.com/portable-scala/sbt-crossproject"),
"scm:git:git@github.com:portable-scala/sbt-crossproject.git",
Some("scm:git:git@github.com:portable-scala/sbt-crossproject.git")
)
)
))
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.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.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.2")
)
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)