-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
84 lines (77 loc) · 2.67 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
72
73
74
75
76
77
78
79
80
81
82
83
import sbt.Keys.scalacOptions
lazy val scala3_4 = "3.4.0"
lazy val commonSettings =
Seq(
organization := "se.umu.cs.tiles",
version := "0.1.0",
description := "Object-oriented functional language to describe, analyze, and model human-centered problems",
homepage := Some(url("https://julianmendez.github.io/tiles/")),
startYear := Some(2023),
licenses := Seq("Apache License Version 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
organizationName := "Umea University",
organizationHomepage := Some(url("https://www.umu.se/en/department-of-computing-science/")),
developers := List(
Developer("julianmendez", "Julian Alfredo Mendez", "[email protected]", new URL("https://julianmendez.github.io"))
),
/**
* Scala
* [[https://www.scala-lang.org]]
* [[https://github.com/scala/scala]]
* [[https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/]]
*/
crossScalaVersions := Seq(scala3_4),
scalaVersion := scala3_4,
/**
* ScalaTest
* [[https://www.scalatest.org]]
* [[https://github.com/scalatest/scalatest]]
* [[https://repo1.maven.org/maven2/org/scalatest/]]
*/
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.18" % "test",
resolvers += Resolver.mavenLocal,
publishTo := Some(Resolver.mavenLocal),
publishMavenStyle := true,
publishConfiguration := publishConfiguration.value.withOverwrite(true),
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true),
scalacOptions ++= Seq("-deprecation", "-feature")
)
lazy val docs =
project
.withId("docs")
.in(file("docs"))
.settings(commonSettings)
lazy val core =
project
.withId("core")
.in(file("core"))
.settings(
commonSettings,
assembly / assemblyJarName := "core-" + version.value + ".jar"
)
lazy val examples =
project
.withId("examples")
.in(file("examples"))
.aggregate(core)
.dependsOn(core)
.settings(
commonSettings,
/**
* YAML 1.2 parser
* [[https://bitbucket.org/asomov/snakeyaml-engine]]
* [[https://repo1.maven.org/maven2/org/snakeyaml/snakeyaml-engine/]]
*/
libraryDependencies += "org.snakeyaml" % "snakeyaml-engine" % "2.7",
assembly / assemblyJarName := "examples-" + version.value + ".jar"
)
lazy val root =
project
.withId("tiles")
.in(file("."))
.aggregate(docs, core, examples)
.dependsOn(docs, core, examples)
.settings(
commonSettings,
assembly / mainClass := Some("soda.tiles.fairness.example.main.EntryPoint"),
assembly / assemblyJarName := "tiles-" + version.value + ".jar"
)