-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
55 lines (51 loc) · 1.75 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
import scala.util.Properties.envOrElse
val scala212 = "2.12.20"
val scala213 = "2.13.15"
val scala3 = "3.3.4"
lazy val supportedScalaVersions = List(scala213, scala212, scala3)
inScope(Scope.GlobalScope)(
List(
organization := "us.oyanglul",
licenses := Seq(
"Apache License 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
homepage := Some(url("https://github.com/jcouyang/dhall-generic")),
developers := List(
Developer(
"jcouyang",
"Jichao Ouyang",
"oyanglulu+dhallgeneric@gmail.com",
url("https://github.com/jcouyang")
)
),
scmInfo := Some(
ScmInfo(
url("https://github.com/jcouyang/dhall-generic"),
"scm:git@github.com:jcouyang/dhall-generic.git"
)
),
pgpPublicRing := file(".") / ".gnupg" / "pubring.asc",
pgpSecretRing := file(".") / ".gnupg" / "secring.asc",
releaseEarlyWith := SonatypePublisher,
scalaVersion := scala3,
organization := "us.oyanglul",
organizationName := "blog.oyanglul.us"
)
)
lazy val root = (project in file("."))
.settings(
name := "Dhall Generic",
version := s"${dhall.load.version}.${envOrElse("GITHUB_RUN_NUMBER", "dev")}",
crossScalaVersions := supportedScalaVersions,
// scalacOptions += "-Xlog-implicits",
libraryDependencies ++= dhall.load.modules
.map { case Module(o, n, v) =>
o %% n % v
}
.map(_.withDottyCompat(scalaVersion.value)),
libraryDependencies ++= (if (scalaVersion.value == scala3) Seq()
else
Seq("com.chuusai" %% "shapeless" % "2.4.0-M1")),
libraryDependencies += "org.scalameta" %% "munit" % "1.0.3" % Test,
testFrameworks += new TestFramework("munit.Framework")
)