-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
49 lines (37 loc) · 1.73 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
name := """oocsi-web"""
organization := "IndustrialDesign"
version := "0.4.0"
maintainer := "[email protected]"
scalaVersion := "2.13.13"
libraryDependencies ++= Seq(
guice,
javaWs,
"com.udojava" % "EvalEx" % "2.7"
)
lazy val root = (project in file(".")).enablePlugins(PlayJava, LauncherJarPlugin, JavaAppPackaging)
Compile / unmanagedSourceDirectories += (baseDirectory.value / "../oocsi/server/src")
// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
// Compile the project before generating Eclipse files, so that generated .scala or .class files for views and routes are present
EclipseKeys.preTasks := Seq(Compile / compile)
// Java project. Don't expect Scala IDE
EclipseKeys.projectFlavor := EclipseProjectFlavor.Java
// Use .class files instead of generated .scala files for views and routes
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.ManagedClasses
import com.typesafe.sbt.packager.docker.DockerChmodType
import com.typesafe.sbt.packager.docker.DockerPermissionStrategy
dockerChmodType := DockerChmodType.UserGroupWriteExecute
dockerPermissionStrategy := DockerPermissionStrategy.CopyChown
Docker / maintainer := "[email protected]"
Docker / packageName := "matsfunk/oocsi-server"
Docker / version := sys.env.getOrElse("BUILD_NUMBER", "0.3.40")
Docker / daemonUserUid := None
Docker / daemonUser := "daemon"
dockerExposedPorts := Seq(9000,4444)
dockerBaseImage := "openjdk:11.0.11-jre-slim"
dockerRepository := sys.env.get("ecr_repo")
dockerUpdateLatest := true
// don't publish/package source documentation
Compile / doc / sources := Seq.empty
Compile / packageDoc / publishArtifact := false