-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.sbt
61 lines (55 loc) · 1.49 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
import sbt.Keys._
import sbt._
scalaVersion := "2.13.4"
crossScalaVersions := List(
"2.11.12",
"2.12.15",
"2.13.0",
"2.13.1",
"2.13.2",
"2.13.3",
"2.13.4",
"2.13.5",
"2.13.6",
"2.13.7",
"2.13.8"
)
crossVersion := CrossVersion.full
scalacOptions ++= Seq("-deprecation")
libraryDependencies ++= Seq(
scalaOrganization.value % "scala-compiler" % scalaVersion.value,
"org.scalatest" %% "scalatest" % "3.0.8" % Test,
"commons-io" % "commons-io" % "2.6" % Test
)
organization := "com.github.cb372"
homepage := Some(url("https://github.com/cb372/scala-typed-holes"))
licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
developers := List(
Developer(
"cb372",
"Chris Birchall",
url("https://twitter.com/cbirchall")
)
)
Test / fork := true
Test / javaOptions ++= {
val jar = (Compile / packageBin).value
val scalacClasspath = scalaInstance.value.allJars.mkString(java.io.File.pathSeparator)
Seq(
s"-Dplugin.jar=${jar.getAbsolutePath}",
s"-Dscalac.classpath=$scalacClasspath"
)
}
val `scala-typed-holes` = project.in(file("."))
val docs = project
.in(file("generated-docs")) // important: it must not be the actual directory name, i.e. docs/
.settings(
scalaVersion := "2.12.10",
crossScalaVersions := Nil,
publishArtifact := false,
publish / skip := true,
mdocVariables := Map("VERSION" -> version.value),
mdocOut := file(".")
)
.enablePlugins(MdocPlugin)