-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.sbt
More file actions
71 lines (54 loc) · 1.75 KB
/
build.sbt
File metadata and controls
71 lines (54 loc) · 1.75 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name := "scala-pool"
organization := "io.github.andrebeat"
startYear := Some(2015)
scalaVersion := "3.3.6"
crossScalaVersions := Seq("3.3.6", "2.13.16", "2.12.20")
libraryDependencies ++= Seq("org.specs2" %% "specs2-core" % "4.21.0" % "test")
resolvers ++= Seq(
"snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"releases" at "https://oss.sonatype.org/content/repositories/releases",
"Typesafe Repository" at "https://repo.typesafe.com/typesafe/releases/"
)
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions"
)
Test / scalacOptions ++= Seq("-Yrangepos")
fork := true
publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}
pomIncludeRepository := { _ => false }
Test / publishArtifact := false
releaseCrossBuild := true
releaseTagComment := s"Release ${(ThisBuild / version).value}"
releaseCommitMessage := s"Set version to ${(ThisBuild / version).value}"
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonaRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
scalafmtOnCompile := true
enablePlugins(SiteScaladocPlugin)
enablePlugins(GhpagesPlugin)
git.remoteRepo := {
val actor = sys.env.getOrElse("GITHUB_ACTOR", "NULL")
val token = sys.env.getOrElse("GITHUB_TOKEN", "NULL")
s"""https://$actor:$token@github.com/andresilva/scala-pool.git"""
}