forked from akka/akka-sample-cluster-kubernetes-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
30 lines (20 loc) · 922 Bytes
/
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
import sbt._
import sbt.Keys._
import Dependencies._
organization in ThisBuild := "com.lightbend"
name := "akka-sample-cluster-kubernetes"
scalaVersion := "2.12.10"
// make version compatible with docker for publishing
ThisBuild / dynverSeparator := "-"
scalacOptions := Seq("-feature", "-unchecked", "-deprecation", "-encoding", "utf8")
classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.AllLibraryJars
fork in run := true
Compile / run / fork := true
mainClass in (Compile, run) := Some("akka.sample.cluster.kubernetes.DemoApp")
enablePlugins(JavaServerAppPackaging, DockerPlugin)
dockerExposedPorts := Seq(8080, 8558, 2552)
dockerUpdateLatest := true
dockerRepository := Some("lightbend")
dockerBaseImage := "adoptopenjdk:11-jre-hotspot"
libraryDependencies ++= Seq(akkaHTTP, akkaSpray, akkaCluster, akkaSharding, akkaStreams, akkaDiscovery,
akkaDiscoveryK8, akkaBootstrap, akkaManagement, logback)