-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
61 lines (53 loc) · 1.96 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
val appVersion:String = "0.103"
val globalScalaVersion = "3.3.0"
ThisBuild / organization := "ai.dragonfly"
ThisBuild / organizationName := "dragonfly.ai"
ThisBuild / resolvers := Resolver.sonatypeOssRepos("releases")
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List( tlGitHubDev("dragonfly-ai", "dragonfly.ai") )
ThisBuild / scalaVersion := globalScalaVersion
ThisBuild / tlBaseVersion := appVersion
ThisBuild / tlCiReleaseBranches := Seq()
ThisBuild / tlSonatypeUseLegacyHost := false
ThisBuild / nativeConfig ~= {
_.withLTO(scala.scalanative.build.LTO.thin)
.withMode(scala.scalanative.build.Mode.releaseFast)
.withGC(scala.scalanative.build.GC.commix)
}
lazy val cliviz = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Full)
.settings(
libraryDependencies ++= Seq(
"ai.dragonfly" %%% "slash" % "0.1",
)
).jvmSettings().jsSettings()
lazy val demo = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Full)
.enablePlugins(NoPublishPlugin)
.dependsOn(cliviz)
.settings(
libraryDependencies ++= Seq(
"ai.dragonfly" %%% "democrossy" % "0.102"
),
name := "demo",
Compile / mainClass := Some("Demo")
).jsSettings(
Compile / fullOptJS / artifactPath := file("./docs/js/main.js"),
scalaJSUseMainModuleInitializer := true
).jvmSettings()
lazy val root = tlCrossRootProject.aggregate(cliviz).settings(name := "cliviz")
lazy val docs = project.in(file("site")).enablePlugins(TypelevelSitePlugin).settings(
mdocVariables := Map(
"VERSION" -> appVersion,
"SCALA_VERSION" -> globalScalaVersion
),
laikaConfig ~= { _.withRawContent }
)
lazy val unidocs = project
.in(file("unidocs"))
.enablePlugins(TypelevelUnidocPlugin) // also enables the ScalaUnidocPlugin
.settings(
name := "cliviz-docs",
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(cliviz.jvm, cliviz.js, cliviz.native)
)