-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
86 lines (53 loc) · 2.67 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import de.heikoseeberger.sbtheader.FileType
import play.twirl.sbt.Import.TwirlKeys
lazy val root = project.in(file(".")).enablePlugins(PlayScala, ForcePlugin, AutomateHeaderPlugin)
name := "dr-cla"
scalaVersion := "2.12.17"
// scalaVersion := "2.13.10"
resolvers ++= Seq(Resolver.mavenLocal, Resolver.jcenterRepo)
libraryDependencies ++= Seq(
guice,
ws,
filters,
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.8",
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.9.8",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.8",
"org.apache.commons" % "commons-compress" % "1.18",
"com.google.guava" % "guava" % "27.0-jre",
"org.bouncycastle" % "bcprov-jdk15on" % "1.60",
"com.pauldijou" %% "jwt-play-json" % "0.19.0",
"org.postgresql" % "postgresql" % "42.1.4",
"org.flywaydb" %% "flyway-play" % "4.0.0",
"io.getquill" %% "quill-async-postgres" % "2.5.4",
"org.webjars" %% "webjars-play" % "2.6.3",
"org.webjars" % "salesforce-lightning-design-system" % "2.4.1",
"org.webjars" % "octicons" % "3.1.0",
"org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % "test"
)
pipelineStages := Seq(digest, gzip)
// The sbt-force plugin can be used to fetch and deploy metadata
username.in(Force) := sys.env.getOrElse("SALESFORCE_USERNAME", "")
password.in(Force) := sys.env.getOrElse("SALESFORCE_PASSWORD", "")
packagedComponents.in(Force) := Seq("sf_cla")
// license header stuff
organizationName := "salesforce.com, inc."
licenses += "BSD-3-Clause" -> url("https://opensource.org/licenses/BSD-3-Clause")
headerMappings += FileType("html") -> HeaderCommentStyle.twirlStyleBlockComment
headerLicense := Some(
HeaderLicense.Custom(
"""|Copyright (c) 2018, salesforce.com, inc.
|All rights reserved.
|SPDX-License-Identifier: BSD-3-Clause
|For full license text, see the LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|""".stripMargin
)
)
headerSources.in(Compile) ++= sources.in(Compile, TwirlKeys.compileTemplates).value
// classpath resources do not need headers
includeFilter.in(headerResources) := NothingFilter
// license report stuff
licenseConfigurations := Set("runtime")
// turn off doc stuff
publishArtifact in (Compile, packageDoc) := false
publishArtifact in packageDoc := false
sources in (Compile, doc) := Seq.empty