-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathbuild.sbt
38 lines (31 loc) · 1.13 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
/*
General Scala attributes
*/
scalaVersion := "2.12.1"
/*
General project attributes
*/
organization := "de.codecentric"
name := "SpringBootScala"
version := "0.1"
maintainer := "Björn Jacobs <[email protected]>"
description := "A demo how to use Spring Boot with Scala for building a basic microservice"
organizationHomepage := Some(url("http://www.codecentric.de"))
/*
Project dependencies
*/
libraryDependencies ++= Seq(
"org.springframework.boot" % "spring-boot-starter-web" % "1.5.4.RELEASE",
"org.springframework.boot" % "spring-boot-configuration-processor" % "1.5.4.RELEASE"
)
/*
Packaging plugin
*/
// enable the Java app packaging archetype and Ash script (for Alpine Linux, doesn't have Bash)
enablePlugins(JavaAppPackaging, AshScriptPlugin)
// set the main entrypoint to the application that is used in startup scripts
mainClass in Compile := Some("de.codecentric.microservice.MyServiceApplication")
// the Docker image to base on (alpine is smaller than the debian based one (120 vs 650 MB)
dockerBaseImage := "openjdk:8-jre-alpine"
// creates tag 'latest' as well when publishing
dockerUpdateLatest := true