-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
42 lines (33 loc) · 1.45 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
crossScalaVersions := Seq("2.13.11", "2.12.18")
scalaVersion := crossScalaVersions.value.head
name := "library-example"
// also used as a `groupId` by Sonatype
organization := "ch.epfl.scala"
libraryDependencies += "com.github.scalaprops" %% "scalaprops" % "0.9.1" % Test
testFrameworks += new TestFramework("scalaprops.ScalapropsFramework")
description := "A library that does nothing useful"
import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(GitHubHosting("scalacenter", "library-example", "[email protected]"))
// indicate the open source licenses that apply to our project
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
// publish to the Sonatype repository
publishTo := sonatypePublishToBundle.value
// documentation website
enablePlugins(ParadoxPlugin, ParadoxSitePlugin, MdocPlugin, SiteScaladocPlugin, SitePreviewPlugin)
mdocIn := sourceDirectory.value / "documentation"
mdocExtraArguments += "--no-link-hygiene"
Compile / paradox / sourceDirectory := mdocOut.value
makeSite := makeSite.dependsOn(mdoc.toTask("")).value
SiteScaladoc / siteSubdirName := "api"
paradoxProperties += ("scaladoc.base_url" -> "api")
// binary compatibility check
mimaPreviousArtifacts := Set.empty // Disabled on `master` branch
inThisBuild(List(
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalafixScalaBinaryVersion := "2.13",
scalacOptions ++= Seq(
"-Yrangepos",
"-Ywarn-unused"
),
))