-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.sbt
More file actions
58 lines (43 loc) · 1.93 KB
/
Copy pathbuild.sbt
File metadata and controls
58 lines (43 loc) · 1.93 KB
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
name := """oocsi-web"""
organization := "IndustrialDesign"
version := "0.4.13"
maintainer := "m.funk@tue.nl"
scalaVersion := "2.13.18"
libraryDependencies ++= Seq(
guice,
javaWs,
"com.ezylang" % "EvalEx" % "3.4.0"
)
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 := "m.funk@tue.nl"
Docker / packageName := "matsfunk/oocsi-server"
Docker / version := sys.env.getOrElse("BUILD_NUMBER", "0.4.6")
Docker / daemonUserUid := None
Docker / daemonUser := "daemon"
dockerExposedPorts := Seq(9000,4444)
dockerBaseImage := "eclipse-temurin:17-jre-ubi9-minimal"
dockerRepository := sys.env.get("ecr_repo")
dockerUpdateLatest := true
// don't publish/package source documentation
Compile / doc / sources := Seq.empty
Compile / packageDoc / publishArtifact := false
// JS pipeline
Assets / pipelineStages := Seq(terser)
// minify js assets
TerserKeys.terserCompress := true
TerserKeys.terserMangle := true
terser / includeFilter := GlobFilter("oocsi-*.js")