-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
55 lines (49 loc) · 1.27 KB
/
build.sbt
File metadata and controls
55 lines (49 loc) · 1.27 KB
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
import Dependencies._
import sbt._
ThisBuild / scalaVersion := "2.13.8"
ThisBuild / organization := "io.fluentlabs"
ThisBuild / organizationName := "FluentLabs"
lazy val settings = Seq(
scalacOptions ++= compilerOptions,
githubTokenSource := TokenSource.Or(
TokenSource.Environment("GITHUB_TOKEN"),
TokenSource.GitConfig("github.token")
),
releaseVersionBump := sbtrelease.Version.Bump.Bugfix,
publishConfiguration := publishConfiguration.value.withOverwrite(true),
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(
true
),
organization := "io.fluentlabs",
githubOwner := "fluent-labs",
githubRepository := "content"
)
lazy val root = (project in file("."))
.settings(
name := "content",
settings,
libraryDependencies ++= Seq(
dto,
cats,
ws,
playJson,
opencc4j,
slf4jApi,
slf4jSimple,
scalaTest % Test
)
)
lazy val compilerOptions = Seq(
"-encoding",
"utf8",
"-deprecation",
"-feature",
"-unchecked",
"-Xfatal-warnings",
"-Wdead-code",
"-Wvalue-discard"
)
// Code coverage settings
coverageMinimumStmtTotal := 70
coverageFailOnMinimum := false
// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for instructions on how to publish to Sonatype.