-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.sbt
46 lines (41 loc) · 1.31 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
import sbt.Keys._
import sbt._
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")
)
)
fork in Test := true
javaOptions in Test ++= {
val jar = (packageBin in Compile).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,
skip in publish := true,
mdocVariables := Map("VERSION" -> version.value),
mdocOut := file(".")
)
.enablePlugins(MdocPlugin)