-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
35 lines (30 loc) · 1.21 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
ThisBuild / organization := "org.scala-exercises"
ThisBuild / githubOrganization := "47degrees"
ThisBuild / scalaVersion := V.scala
Universal / javaOptions += "-Dscala.classpath.closeZip=true"
Universal / mainClass := Some("org.scalaexercises.evaluator.EvaluatorServer")
stage := (`evaluator-server` / Universal / stage).value
(publish / skip) := true
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; test")
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll")
addCommandAlias("ci-publish", "github; ci-release")
lazy val `evaluator-server` = (project in file("server"))
.enablePlugins(JavaAppPackaging)
.enablePlugins(sbtdocker.DockerPlugin)
.enablePlugins(BuildInfoPlugin)
.settings((publish / skip) := true)
.settings(
name := "evaluator-server",
serverHttpDependencies,
(assembly / assemblyJarName) := "evaluator-server.jar"
)
.settings(dockerSettings: _*)
.settings(buildInfoSettings: _*)
.settings(serverScalaMacroDependencies: _*)
.settings(
dependencyOverrides += "org.scala-lang.modules" %% "scala-xml" % "1.3.0"
)
lazy val documentation = project
.settings(mdocOut := file("."))
.settings(publish / skip := true)
.enablePlugins(MdocPlugin)