-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
119 lines (110 loc) · 3.47 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import sbt._
import Keys._
val zioVersion = "2.0.0"
val zioPrelude = "dev.zio" %% "zio-prelude" % "1.0.0-RC15"
val zioTest = "dev.zio" %% "zio-test" % zioVersion % Test
val zioTestSbt = "dev.zio" %% "zio-test-sbt" % zioVersion % Test
val attoCore = "org.tpolecat" %% "atto-core" % "0.9.5"
val cilibCore = "net.cilib" %% "core" % "2.0.0+123-6fb77f57-SNAPSHOT"
Global / onChangedBuildSource := ReloadOnSourceChanges
inThisBuild(
List(
organization := "net.cilib",
crossScalaVersions := Seq("2.12.12", "2.13.8"),// "3.0.0"),
homepage := Some(url("https://cilib,net")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"gpampara",
"Gary Pamparà",
"",
url("http://gpampara.github.io")
)
),
scmInfo := Some(
ScmInfo(url("https://github.com/ciren/benchmarks/"), "scm:git:[email protected]:ciren/benckmarks.git")
),
semanticdbEnabled := true, // enable SemanticDB
semanticdbVersion := scalafixSemanticdb.revision // only required for Scala 2.x
)
)
lazy val benchmarks =
project.in(file("."))
.settings(
name := "benchmarks",
scalacOptions ++=
(CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 12)) =>
Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:experimental.macros",
"-unchecked",
// "-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
// "-verbose",
"-Xfuture"
)
case Some((2, 13)) =>
Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:experimental.macros",
"-unchecked",
// "-Xfatal-warnings",
"-Xlint",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
// "-verbose",
"-Xfuture"
)
case x =>
sys.error(s"Version of scala is not supported: $x")
}),
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
),
libraryDependencies := Seq(
cilibCore,
zioPrelude,
attoCore,
zioTest, zioTestSbt
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")),
publishMavenStyle := true,
Test / publishArtifact := false,
pomExtra := (
<developers>
{
Seq(
("robgarden", "Robert Garden"),
("gpampara", "Gary Pamparà"),
("filinep", "Filipe Nepomuceno"),
("benniel", "Bennie Leonard")
).map {
case (id, name) =>
<developer>
<id>{id}</id>
<name>{name}</name>
<url>http://github.com/{id}</url>
</developer>
}
}
</developers>
),
ThisBuild / scalafixDependencies += "com.nequissimus" %% "sort-imports" % "0.5.0"
)