-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (62 loc) · 1.75 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
import Dependencies._
lazy val scala212 = "2.12.13"
lazy val scala213 = "2.13.4"
lazy val scala3 = "3.0.0"
lazy val supportedScalaVersions = List(scala212, scala213, scala3)
lazy val root = (project in file("."))
.settings(
commonSettings,
publishingSettings
)
lazy val commonSettings = Seq(
name := "burner4s",
libraryDependencies += scalaTest % Test,
crossScalaVersions := supportedScalaVersions,
scalaVersion := scala3,
scalacOptions ++= Seq(
"-deprecation"
)
)
import ReleaseTransformations._
lazy val publishingSettings = Seq(
organization := "com.ariskk",
organizationName := "ariskk",
organizationHomepage := Some(url("http://ariskk.com/")),
scmInfo := Some(
ScmInfo(
url("https://github.com/ariskk/burner4s"),
"scm:[email protected]:ariskk/burner4s.git"
)
),
developers := List(
Developer(
id = "ariskk",
name = "Aris Koliopoulos",
email = "[email protected]",
url = url("http://ariskk.com")
)
),
description := "Burner email look up tool",
licenses := List("MIT" -> new URL("http://opensource.org/licenses/MIT")),
homepage := Some(url("https://github.com/ariskk/burner4s")),
pomIncludeRepository := { _ => false },
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
releaseProcess := Seq[ReleaseStep](
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)
)