-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
70 lines (60 loc) · 1.75 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
import Dependencies._
import com.typesafe.sbt.packager.docker._
ThisBuild / scalaVersion := "2.13.14"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / organization := "io.github.dataunitylab"
ThisBuild / organizationName := "Rochester Institute of Technology"
ThisBuild / githubOwner := "dataunitylab"
ThisBuild / githubRepository := "jsonoid-web"
Global / onChangedBuildSource := ReloadOnSourceChanges
Universal / javaOptions ++= Seq(
"-Dpidfile.path=/dev/null"
)
lazy val root = (project in file("."))
.settings(
name := "JSONoid Web",
resolvers += Resolver.githubPackages("michaelmior"),
resolvers += "jitpack" at "https://jitpack.io",
libraryDependencies ++= Seq(
caffeine,
guice,
jsonoid,
scalaTest % Test,
),
watchSources ++= (baseDirectory.value / "public/ui" ** "*").get,
scalacOptions ++= Seq(
"-feature",
"-Xfatal-warnings",
)
)
wartremoverErrors ++= Seq(
Wart.ArrayEquals,
Wart.EitherProjectionPartial,
Wart.Enumeration,
Wart.Equals,
Wart.ExplicitImplicitTypes,
Wart.FinalCaseClass,
Wart.MutableDataStructures,
Wart.NonUnitStatements,
Wart.Null,
Wart.Option2Iterable,
Wart.PublicInference,
Wart.Recursion,
Wart.Return,
Wart.StringPlusAny,
Wart.TryPartial,
Wart.While,
)
enablePlugins(DockerPlugin)
enablePlugins(GitVersioning)
enablePlugins(PlayScala)
enablePlugins(SiteScaladocPlugin)
dockerEntrypoint := Seq("/opt/docker/bin/jsonoid-web", "-Dhttp.port=8080")
dockerBaseImage := "azul/zulu-openjdk:11-jre"
dockerCommands ++= Seq(
Cmd("USER", "root"),
ExecCmd("RUN", "mkdir", "-p", "/opt/docker/logs"),
)
dockerExposedPorts := Seq(8080)
git.remoteRepo := "[email protected]:dataunitylab/jsonoid-web.git"
git.useGitDescribe := true