-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
74 lines (68 loc) · 1.82 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
val scala3 = "3.3.3"
val scala213 = "2.13.14"
val scala212 = "2.12.19"
inThisBuild(
Seq(
organization := "com.github.lolgab",
version := "0.3.0",
scalaVersion := scala213,
crossScalaVersions := Seq(scala3, scala213, scala212),
versionScheme := Some("early-semver")
)
)
val publishSettings = Seq(
publishMavenStyle := true,
Test / publishArtifact := false,
pomIncludeRepository := { _ => false },
homepage := Some(url("https://github.com/scala-native/scala-native-loop")),
licenses := Seq(
"Apache 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
publishTo := sonatypePublishToBundle.value,
scmInfo := Some(
ScmInfo(
url("https://github.com/scala-native/scala-native-loop"),
"scm:git:[email protected]:scala-native/scala-native-loop.git"
)
),
developers := List(
Developer(
id = "lolgab",
name = "Lorenzo Gabriele",
email = "[email protected]",
url = url("https://github.com/lolgab")
)
)
)
lazy val commonSettings = Seq(
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"utf8",
"-feature",
"-unchecked",
"-Xfatal-warnings"
// "-Wunused:imports"
),
libraryDependencies += "com.lihaoyi" %%% "utest" % "0.8.3" % Test,
testFrameworks += new TestFramework("utest.runner.Framework")
)
lazy val core = project
.in(file("core"))
.settings(name := "native-loop-core")
.settings(commonSettings)
.settings(publishSettings)
.enablePlugins(ScalaNativePlugin)
lazy val scalaJsCompat = project
.in(file("scalajs-compat"))
.settings(name := "native-loop-js-compat")
.settings(commonSettings)
.settings(publishSettings)
.enablePlugins(ScalaNativePlugin)
.dependsOn(core)
lazy val root = project
.in(file("."))
.aggregate(core, scalaJsCompat)
.settings(
publish / skip := true
)