forked from bjoernjacobs/spring-boot-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
41 lines (34 loc) · 1.32 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
/*
General Scala attributes
*/
scalaVersion := "2.12.5"
/*
General project attributes
*/
organization := "uk.gov.ons"
name := "ONS OpenID"
version := "0.1"
maintainer := "Paul Soule <[email protected]>"
description := "A demo how to use OpenID to secure a REST service"
organizationHomepage := Some(url("http://www.ons.gov.uk"))
/*
Project dependencies
*/
libraryDependencies ++= Seq(
"org.springframework.boot" % "spring-boot-starter-web" % "2.0.1.RELEASE"
exclude("org.springframework.boot", "spring-boot-starter-tomcat"),
"org.springframework.boot" % "spring-boot-configuration-processor" % "2.0.1.RELEASE",
"org.springframework.boot" % "spring-boot-starter-jetty" % "2.0.1.RELEASE",
"org.springframework.boot" % "spring-boot-starter-actuator" % "2.0.1.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 entry point to the application that is used in startup scripts
mainClass in Compile := Some("gov.uk.ons.registers.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