-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
29 lines (24 loc) · 1.06 KB
/
build.sbt
File metadata and controls
29 lines (24 loc) · 1.06 KB
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
import com.ossuminc.sbt.OssumIncPlugin
import com.ossuminc.riddl.sbt.plugin.RiddlSbtPlugin
import sbt.Keys._
Global / onChangedBuildSource := ReloadOnSourceChanges
enablePlugins(OssumIncPlugin)
enablePlugins(RiddlSbtPlugin)
lazy val riddlModels = Root("riddl-models", startYr = 2026, spdx = "Apache-2.0")
.configure(With.typical) // Sets up Scala 3.3.x and resolvers
.configure(With.noPublishing, With.Git, With.DynVer, With.noMiMa,
riddlc(sourceDir = ".", validateOnCompile = false))
.settings(
// Make the base directory available as a system property for the test
Test / javaOptions +=
s"-Driddl.models.basedir=${baseDirectory.value.getAbsolutePath}",
Test / fork := true,
// --- sbt-riddl configuration ---
riddlcSourceDir := baseDirectory.value,
riddlcConfExclusions := Seq("patterns"),
riddlcOptions := Seq("--show-times", "--no-ansi-messages")
)
// Command aliases (plugin provides validate, bastify, prettify)
addCommandAlias("v", "riddlcValidate")
addCommandAlias("b", "riddlcBastify")
addCommandAlias("r", "riddlcPrettify")