forked from evolution-gaming/scache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
90 lines (68 loc) · 1.92 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import sbt.librarymanagement.For3Use2_13
import Dependencies._
import org.scoverage.coveralls.Imports.CoverallsKeys._
def crossSettings[T](scalaVersion: String, if3: T, if2: T) = {
scalaVersion match {
case version if version.startsWith("3") => if3
case _ => if2
}
}
name := "scache"
organization := "com.evolution"
homepage := Some(new URL("http://github.com/evolution-gaming/scache"))
startYear := Some(2019)
organizationName := "Evolution Gaming"
organizationHomepage := Some(url("http://evolutiongaming.com"))
coverageExcludedFiles := ".*CacheOpsCompat.*"
scalaVersion := crossScalaVersions.value.head
crossScalaVersions := Seq("2.13.11", "3.3.0", "2.12.18")
scalacOptsFailOnWarn := crossSettings(
scalaVersion.value,
if3 = Some(false),
if2 = Some(true)
)
libraryDependencies ++= crossSettings(
scalaVersion.value,
if3 = Nil,
if2 = Seq(
compilerPlugin(betterMonadicFor),
compilerPlugin(`kind-projector` cross CrossVersion.full)
)
)
scalacOptions ++= crossSettings(
scalaVersion.value,
if3 = Seq(
"-Ykind-projector:underscores",
"-language:implicitConversions",
"-source:future"
),
if2 = Seq("-Xsource:3", "-P:kind-projector:underscore-placeholders")
)
libraryDependencies ++= Seq(
Cats.core,
Cats.effect,
`cats-helper`,
smetrics,
scalatest % Test
)
autoAPIMappings := true
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT")))
description := "Cache in Scala with cats-effect"
sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
Test / publishArtifact := false
scmInfo := Some(
ScmInfo(
url("https://github.com/evolution-gaming/scache"),
"[email protected]:evolution-gaming/scache.git"
)
)
developers := List(
Developer(
"t3hnar",
"Yaroslav Klymko",
url("https://github.com/t3hnar")
)
)
enablePlugins(GitVersioning)