-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
57 lines (51 loc) · 1.58 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
import sbtrelease.ReleaseStateTransformations._
import sbtrelease.ReleasePlugin.autoImport._
// -------------------------------------------------------------------------------------------------------------------
// Root Project
// -------------------------------------------------------------------------------------------------------------------
lazy val root = (project in file("."))
.settings(
inThisBuild(
List(
organization := "com.techmonal",
scalaVersion := "2.13.8",
scalastyleFailOnError := true,
scalastyleFailOnWarning := false,
scalafmtOnCompile := true,
)
),
name := "scala-lenses",
libraryDependencies ++= dependencies,
)
lazy val dependencies = Seq(
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.scalatest" %% "scalatest" % "3.2.11" % Test,
)
scalacOptions ++= Seq(
"-feature",
"-unchecked",
"-language:higherKinds",
"-language:postfixOps",
"-deprecation",
)
resolvers ++= Seq(
Resolver.mavenLocal,
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots"),
"Bintray ".at("https://dl.bintray.com/projectseptemberinc/maven"),
)
releaseProcess := Seq(
checkSnapshotDependencies,
inquireVersions,
// publishing locally in the process
releaseStepCommandAndRemaining("+publishLocal"),
releaseStepCommandAndRemaining("+clean"),
releaseStepCommandAndRemaining("+test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
pushChanges,
)
addCommandAlias("validate", "; clean; compile; test;")