-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
44 lines (36 loc) · 1.73 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
lazy val scala3 = "3.3.0"
lazy val scala213 = "2.13.11"
lazy val scala212 = "2.12.18"
lazy val supportedScalaVersions = List(scala3, scala213, scala212)
name := "id-generator"
description := "Generate reproducible UUIDs based of a sequence of numbers, with the possibility of generating sub UUIDs from the parent UUID."
semanticdbEnabled := true
semanticdbVersion := scalafixSemanticdb.revision
scalaVersion := scala213
crossScalaVersions := supportedScalaVersions
Global / onChangedBuildSource := ReloadOnSourceChanges
Global / scalafmtOnCompile := true
ThisBuild / scalafixDependencies += Dependencies.Plugins.organizeImports
ThisBuild / organization := "io.github.bcarter97"
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / homepage := Some(url("https://github.com/bcarter97/id-generator"))
ThisBuild / licenses := List("BSD New" -> url("https://opensource.org/licenses/BSD-3-Clause"))
ThisBuild / developers := List(
Developer(
"bcarter97",
"Ben Carter",
url("https://github.com/bcarter97/")
)
)
ThisBuild / versionScheme := Some("early-semver")
Compile / doc / scalacOptions += "-no-link-warnings"
libraryDependencies ++= Dependencies.all
// Formatting aliases
addCommandAlias("checkFix", "scalafixAll --check OrganizeImports; scalafixAll --check")
addCommandAlias("runFix", "scalafixAll OrganizeImports; scalafixAll")
addCommandAlias("checkFmt", "scalafmtCheckAll; scalafmtSbtCheck")
addCommandAlias("runFmt", "scalafmtAll; scalafmtSbt")
// CI aliases
addCommandAlias("ciBuild", "clean; checkFix; checkFmt; +test")
addCommandAlias("ciCodeCov", "coverage; test; coverageReport")