-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
56 lines (50 loc) · 1.69 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
import sbtcrossproject.CrossPlugin.autoImport.{CrossType, crossProject}
lazy val fordeckmacia = project
.in(file("."))
.settings(commonSettings, releaseSettings, publish / skip := true)
.aggregate(core.jvm, core.js)
lazy val core = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
commonSettings,
releaseSettings,
name := "fordeckmacia"
)
.jsSettings(scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.CommonJSModule)))
lazy val docs = project
.in(file("fordeckmacia-docs"))
.settings(
commonSettings,
mdocIn := file("docs/README.md"),
mdocOut := file("README.md"),
publish / skip := true
)
.dependsOn(core.jvm)
.enablePlugins(MdocPlugin)
lazy val commonSettings = Seq(
scalacOptions ++= Seq("-new-syntax"),
scalaVersion := "3.1.3",
libraryDependencies ++= Seq(
"org.scodec" %%% "scodec-core" % "2.2.0",
"org.scodec" %%% "scodec-bits" % "1.1.34",
"org.scalameta" %%% "munit" % "0.7.29" % Test,
"org.scalameta" %%% "munit-scalacheck" % "0.7.29" % Test
),
testFrameworks += new TestFramework("munit.Framework")
// mimaPreviousArtifacts := Set(organization.value %%% moduleName.value % "1.0.11")
)
lazy val releaseSettings = Seq(
organization := "com.github.billzabob",
homepage := Some(url("https://github.com/billzabob/fordeckmacia")),
licenses := Seq("LGPL-3.0" -> url("https://www.gnu.org/licenses/lgpl-3.0.en.html")),
developers := List(
Developer(
"billzabob",
"Nick Hallstrom",
url("https://github.com/billzabob")
)
)
)
Global / onChangedBuildSource := ReloadOnSourceChanges