-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
95 lines (89 loc) · 2.62 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
val scalaVersions = Seq("2.12.11", "2.13.5")
ThisBuild / organization := "com.github.katlasik"
ThisBuild / crossScalaVersions := scalaVersions
lazy val root = (project in file("."))
.settings(
name := "functionmeta",
homepage := Some(url("https://github.com/katlasik/functionmeta")),
scalaVersion := "2.13.5",
crossScalaVersions := scalaVersions,
sonatypeProfileName := "com.github.katlasik",
publishMavenStyle := true,
publishConfiguration := publishConfiguration.value.withOverwrite(true),
licenses := Seq("ISC" -> url("https://opensource.org/licenses/ISC")),
scmInfo := Some(
ScmInfo(url("https://github.com/katlasik/functionmeta"), "git@github.com:katlasik/functionmeta.git")
),
libraryDependencies ++= Seq(
"org.scalameta" %% "scalameta" % "4.4.17",
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"com.chuusai" %% "shapeless" % "2.3.6" % "test",
"org.scalatest" %% "scalatest" % "3.2.8" % "test"
),
developers := List(
Developer(
id="katlasik",
name="Krzysztof Atlasik",
email="krzysztof.atlasik@pm.me",
url("https://github.com/katlasik/functionmeta")
)
)
)
Compile / scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n >= 13 => "-Ymacro-annotations" :: Nil
case _ => Nil
}
}
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n >= 13 => Nil
case _ =>
compilerPlugin(
"org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full
) :: Nil
}
}
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"utf-8",
"-explaintypes",
"-feature",
"-language:existentials",
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xcheckinit",
"-Xlint:adapted-args",
"-Xlint:constant",
"-Xlint:delayedinit-select",
"-Xlint:doc-detached",
"-Xlint:inaccessible",
"-Xlint:infer-any",
"-Xlint:missing-interpolator",
"-Xlint:nullary-override",
"-Xlint:nullary-unit",
"-Xlint:option-implicit",
"-Xlint:package-object-classes",
"-Xlint:poly-implicit-overload",
"-Xlint:private-shadow",
"-Xlint:stars-align",
"-Xlint:type-parameter-shadow",
"-Ywarn-dead-code",
"-Ywarn-extra-implicit",
"-Ywarn-numeric-widen",
"-Ywarn-unused:implicits",
"-Ywarn-unused:imports",
"-Ywarn-unused:locals",
"-Ywarn-unused:patvars",
"-Ywarn-unused:privates",
"-Ywarn-value-discard"
)