-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
71 lines (64 loc) · 2.07 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
import Dependencies._
import java.time.{LocalDateTime, ZoneId}
Global / onChangedBuildSource := ReloadOnSourceChanges
Global / excludeLintKeys := Set(idePackagePrefix)
ThisBuild / scalafixDependencies ++= Seq(
"io.github.ghostbuster91.scalafix-unified" %% "unified" % "0.0.9",
"net.pixiv" %% "scalafix-pixiv-rule" % "4.5.3"
)
ThisBuild / idePackagePrefix := Some("io.github.cakelier")
ThisBuild / name := "scala-library-template"
ThisBuild / organization := "io.github.cake-lier"
ThisBuild / organizationName := "cake_lier"
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/cake-lier/scala-library-template"),
"scm:git@github.com:cake-lier/scala-library-template.git"
)
)
ThisBuild / developers := List(
Developer(
id = "cake_lier",
name = "Matteo Castellucci",
email = "matteo.castellucci@outlook.com",
url = url("https://github.com/cake-lier")
)
)
ThisBuild / description := ""
ThisBuild / licenses := List(
"MIT" -> new URL("https://opensource.org/licenses/MIT")
)
ThisBuild / homepage := Some(
url("https://github.com/cake-lier/scala-library-template")
)
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishMavenStyle := true
ThisBuild / versionScheme := Some("semver-spec")
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / autoAPIMappings := true
lazy val root = project
.in(file("."))
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "scala-library-template",
scalaVersion := "3.3.0",
scalacOptions ++= Seq(
"-deprecation",
"-Xfatal-warnings"
),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
libraryDependencies ++= Seq(
scalactic,
scalatest
),
wartremoverErrors ++= Warts.allBut(Wart.ImplicitParameter),
version := "1.0.0",
coverageMinimumStmtTotal := 80,
coverageMinimumBranchTotal := 80,
headerLicense := Some(HeaderLicense.MIT(
LocalDateTime.now(ZoneId.of("UTC+1")).getYear.toString,
"Matteo Castellucci"
)),
)