Skip to content

Commit 95c4927

Browse files
authored
fix: enable plugins and define main class (#33)
- enable plugin instruction missing - main class missing for the final image
1 parent 87bb205 commit 95c4927

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.sbt

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ lazy val compileSettings = Seq(
3131
// Ensure Java-based DAS SDK code is compiled first, so it is accessible from Scala.
3232
compileOrder := CompileOrder.JavaThenScala,
3333
// Ensure we fork new JVM for run, so we can set JVM flags.
34-
Compile / run / fork := true)
34+
Compile / run / fork := true,
35+
Compile / mainClass := Some("com.rawlabs.das.server.DASServer")
36+
)
3537

3638
lazy val testSettings = Seq(
3739
// Ensure we fork new JVM for run, so we can set JVM flags.
@@ -108,7 +110,7 @@ lazy val dockerSettings = Seq(
108110
})
109111

110112
lazy val root = (project in file("."))
111-
.enablePlugins(BuildInfoPlugin)
113+
.enablePlugins(BuildInfoPlugin, JavaAppPackaging, DockerPlugin)
112114
.settings(
113115
name := "das-server-scala",
114116
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion),

0 commit comments

Comments
 (0)