-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
59 lines (49 loc) · 1.8 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
lazy val scala211 = "2.11.12"
lazy val scala212 = "2.12.10"
lazy val supportedScalaVersions = List(scala212, scala211)
ThisBuild / scalaVersion := scala212
ThisBuild / turbo := true
lazy val root = (project in file("."))
.aggregate(crossed.js, crossed.jvm)
.settings(
crossScalaVersions := Nil,
publish / skip := true
)
lazy val crossed = crossProject(JSPlatform, JVMPlatform).in(file(".")).
settings(
name := "citerelations",
organization := "edu.holycross.shot",
version := "2.7.1",
licenses += ("GPL-3.0",url("https://opensource.org/licenses/gpl-3.0.html")),
resolvers += "Nexus" at "https://terracotta.hpcc.uh.edu/nexus/repository/maven-releases/",
libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest" % "3.1.2" % "test",
"org.wvlet.airframe" %%% "airframe-log" % "20.5.2",
"edu.holycross.shot" %%% "cex" % "6.5.1",
"edu.holycross.shot.cite" %%% "xcite" % "4.3.1"
),
credentials += Credentials(Path.userHome / ".sbt" / ".credentials"),
publishTo := Some("releases" at "https://terracotta.hpcc.uh.edu/nexus/repository/maven-releases/")
).
jvmSettings(
// JVM-specific settings:
libraryDependencies ++= Seq(
"org.scala-js" %% "scalajs-stubs" % "1.0.0" % "provided",
)
).
jsSettings(
// JS-specific settings:
scalaJSUseMainModuleInitializer := true,
)
lazy val docs = project // new documentation project
.in(file("docs-build")) // important: it must not be docs/
.dependsOn(crossed.jvm)
.enablePlugins(MdocPlugin)
.settings(
mdocIn := file("guide"),
mdocOut := file("docs"),
mdocExtraArguments := Seq("--no-link-hygiene"),
mdocVariables := Map(
"VERSION" -> "2.7.0"
)
)