-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
71 lines (67 loc) · 1.95 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
val Dc10V = "0.6.0"
val MUnitV = "1.0.2"
inThisBuild(List(
crossScalaVersions := Seq(scalaVersion.value),
description := "A definitional compiler for generating Scala code.",
organization := "com.julianpeeters",
homepage := Some(url("https://github.com/julianpeeters/dc10-scala")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"julianpeeters",
"Julian Peeters",
url("http://github.com/julianpeeters")
)
),
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-Werror",
"-Wunused:all",
"-Xkind-projector:underscores"
),
scalaVersion := "3.5.2",
versionScheme := Some("semver-spec"),
))
lazy val scala = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("modules/scala"))
.settings(
name := "dc10-scala",
libraryDependencies ++= Seq(
// main
"com.julianpeeters" %%% "dc10-core" % Dc10V,
// test
"org.scalameta" %% "munit" % MUnitV % Test
)
)
.jsSettings(test := {})
.nativeSettings(test := {})
lazy val metalang = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("modules/metalang"))
.enablePlugins(BuildInfoPlugin)
.settings(
name := "dc10-scala-metalang",
buildInfoKeys := Seq[BuildInfoKey](organization, name, version),
buildInfoPackage := "dc10.scala.metalang",
libraryDependencies ++= Seq(
// main
//
// test
"org.scalameta" %% "munit" % MUnitV % Test
)
)
.dependsOn(scala)
.jsSettings(test := {})
.nativeSettings(test := {})
lazy val docs = project.in(file("docs/gitignored"))
.settings(
mdocOut := file("."),
mdocVariables := Map(
"SCALA" -> crossScalaVersions.value.map(e => e.takeWhile(_ != '.')).mkString(", "),
"VERSION" -> version.value.takeWhile(_ != '+'),
)
)
.dependsOn(scala.jvm)
.enablePlugins(MdocPlugin)
.enablePlugins(NoPublishPlugin)