/
build.sbt
59 lines (54 loc) · 1.51 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
val scala3 = "3.1.1"
val scala213 = "2.13.4"
val scala212 = "2.12.13"
val scala211 = "2.11.12"
inThisBuild(
Seq(
organization := "com.github.lolgab",
version := "0.2.1",
scalaVersion := scala213,
crossScalaVersions := Seq(scala3, scala213, scala212, scala211),
)
)
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:git@github.com:scala-native/scala-native-loop.git"
)
)
)
lazy val commonSettings = Seq(
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"utf8",
"-feature",
"-unchecked",
"-Xfatal-warnings",
// "-Wunused:imports"
),
libraryDependencies += "com.lihaoyi" %%% "utest" % "0.7.11" % 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)