-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.sbt
57 lines (49 loc) · 2.08 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
import Build.*
inThisBuild(
List(
organization := "ch.epfl.scala",
organizationName := "Scala Center",
organizationHomepage := Some(url("https://scala.epfl.ch")),
homepage := Some(url("https://scala.epfl.ch")),
developers := List(Developer("eloots", "Eric Loots", "[email protected]", url("https://github.com/eloots"))),
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/license/LICENSE-2.0"))))
ThisBuild / dynverVTagPrefix := false
lazy val `course-management-tools` =
(project in file("."))
.aggregate(cmta, cmtc, `cmt-core`, `functional-tests`, docs)
.settings(commonSettings: _*)
.settings(publish / skip := true)
lazy val `cmt-core` =
project
.in(file("cmt-core"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Dependencies.coreDependencies)
lazy val cmta = project
.in(file("cmta"))
.enablePlugins(BuildInfoPlugin)
.enablePlugins(NativeImagePlugin)
.dependsOn(`cmt-core`, `cmt-core` % "test->test")
.settings(commonSettings: _*)
.settings(nativeImageSettings: _*)
.settings(Compile / mainClass := Some("coursemgmt.admin.Main"))
.settings(buildInfoKeys := buildKeysWithName("cmta:Course Management Tools (Admin)"))
lazy val cmtc = project
.in(file("cmtc"))
.enablePlugins(BuildInfoPlugin)
.enablePlugins(NativeImagePlugin)
.dependsOn(`cmt-core`, `cmt-core` % "test->test")
.settings(commonSettings: _*)
.settings(nativeImageSettings: _*)
.settings(libraryDependencies ++= Dependencies.cmtcDependencies)
.settings(Compile / mainClass := Some("coursemgmt.client.Main"))
.settings(buildInfoKeys := buildKeysWithName("Course Management Tools (Client)"))
lazy val `functional-tests` = project
.in(file("functional-tests"))
.dependsOn(cmta, cmtc, `cmt-core`)
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Dependencies.functionalTestDependencies)
.settings(publish / skip := true)
lazy val docs = project
.in(file("course-management-tools-docs"))
.settings(moduleName := "course-management-tools-docs", publish / skip := true)
.enablePlugins(MdocPlugin, DocusaurusPlugin)