This repository has been archived by the owner on Oct 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
63 lines (47 loc) · 1.99 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
addCommandAlias("fmt", "; compile:scalafmt; test:scalafmt; scalafmtSbt")
addCommandAlias("fmtCheck", "; compile:scalafmtCheck; test:scalafmtCheck; scalafmtSbtCheck")
ThisBuild / baseVersion := "3.0"
ThisBuild / organization := "org.scodec"
ThisBuild / organizationName := "Scodec"
ThisBuild / homepage := Some(url("https://github.com/scodec/scodec-protocols"))
ThisBuild / startYear := Some(2013)
ThisBuild / crossScalaVersions := Seq("3.0.1")
ThisBuild / strictSemVer := false
ThisBuild / githubWorkflowJavaVersions := Seq("[email protected]")
ThisBuild / spiewakMainBranches := List("main")
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/scodec/scodec-protocols"), "[email protected]:scodec/scodec-protocols.git")
)
ThisBuild / licenses := List(
("BSD-3-Clause", url("https://github.com/scodec/scodec-protocols/blob/main/LICENSE"))
)
ThisBuild / testFrameworks += new TestFramework("munit.Framework")
ThisBuild / publishGithubUser := "mpilquist"
ThisBuild / publishFullName := "Michael Pilquist"
ThisBuild / fatalWarningsInCI := false
ThisBuild / mimaBinaryIssueFilters ++= Seq(
)
val core = project
.in(file("."))
.enablePlugins(SonatypeCiReleasePlugin, SbtOsgi)
.settings(
name := "scodec-protocols",
libraryDependencies ++= Seq(
"org.scodec" %%% "scodec-stream" % "3.0.1",
"co.fs2" %%% "fs2-io" % "3.0.6" % Test,
"org.scalameta" %%% "munit-scalacheck" % "0.7.27" % Test
),
Compile / unmanagedResources ++= {
val base = baseDirectory.value
(base / "NOTICE") +: (base / "LICENSE") +: ((base / "licenses") * "LICENSE_*").get
},
OsgiKeys.privatePackage := Nil,
OsgiKeys.exportPackage := Seq("scodec.stream.*;version=${Bundle-Version}"),
OsgiKeys.importPackage := Seq(
"""scala.*;version="$<range;[==,=+);$<@>>"""",
"""fs2.*;version="$<range;[==,=+);$<@>>"""",
"""scodec.*;version="$<range;[==,=+);$<@>>"""",
"*"
),
OsgiKeys.additionalHeaders := Map("-removeheaders" -> "Include-Resource,Private-Package")
)