-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
69 lines (49 loc) · 1.44 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
import Dependencies._
name := "random"
organization := "com.evolution"
homepage := Some(url("https://github.com/evolution-gaming/random"))
startYear := Some(2019)
organizationName := "Evolution"
organizationHomepage := Some(url("https://evolution.com"))
scalaVersion := crossScalaVersions.value.head
crossScalaVersions := Seq("2.13.11", "2.12.18", "3.3.0")
Compile / unmanagedSourceDirectories += {
if (scalaVersion.value startsWith "2")
sourceDirectory.value / "main" / "scala-2"
else
sourceDirectory.value / "main" / "scala-3"
}
Test / unmanagedSourceDirectories += {
if (scalaVersion.value startsWith "2")
sourceDirectory.value / "test" / "scala-2"
else
sourceDirectory.value / "test" / "scala-3"
}
libraryDependencies ++= Seq(
Cats.core,
CatsEffect.effect,
`cats-helper`,
scalatest % Test
)
autoAPIMappings := true
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT")))
Test / publishArtifact := false
scmInfo := Some(
ScmInfo(
url("https://github.com/evolution-gaming/random"),
"git@github.com:evolution-gaming/random.git"
)
)
developers := List(
Developer(
"t3hnar",
"Yaroslav Klymko",
"yklymko@evolution.com",
url("https://github.com/t3hnar")
)
)
publishTo := Some(Resolver.evolutionReleases)
releaseCrossBuild := true
//addCommandAlias("check", "all versionPolicyCheck Compile/doc")
addCommandAlias("check", "show version")
addCommandAlias("build", "+all compile test")