-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
32 lines (30 loc) · 1.08 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
def isRelease() =
System.getenv("GITHUB_REPOSITORY") == "scalacenter/scala3-binary-decoder" &&
Option(System.getenv("GITHUB_WORKFLOW")).exists(_.contains("Release"))
inThisBuild(
Seq(
organization := "ch.epfl.scala",
homepage := Some(url("https://github.com/scalacenter/scala3-binary-decoder")),
onLoadMessage := s"Welcome to scala3-binary-decoder ${version.value}",
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := Developers.all,
version ~= { dynVer => if (isRelease) dynVer else "1.0.0-SNAPSHOT" }
)
)
lazy val decoder: Project = project
.in(file("."))
.settings(
name := "scala3-binary-decoder",
scalaVersion := Dependencies.scala3Next,
Compile / doc / sources := Seq.empty,
libraryDependencies ++= Seq(
Dependencies.tastyQuery,
Dependencies.asm,
Dependencies.asmUtil,
Dependencies.munit % Test,
Dependencies.coursier % Test,
Dependencies.coursierJvm % Test
),
Test / fork := true,
Test / testOptions += Tests.Argument(TestFrameworks.MUnit, "+l")
)