-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
43 lines (35 loc) · 2.1 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
import sbt.io.Path.userHome
lazy val LocalMavenResolverForSbtPlugins = {
// remove scala and sbt versions from the path, as it does not work with jitpack
val pattern = "[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
val name = "local-maven-for-sbt-plugins"
val location = userHome / ".m2" / "repository"
Resolver.file(name, location)(Patterns().withArtifactPatterns(Vector(pattern)))
}
name := "sbt-docs"
organization := "com.github.tmtsoftware"
version := "0.5.0"
description := "An sbt plugin for publishing markdown documentation to github pages"
homepage := scmInfo.value map (_.browseUrl)
scmInfo := Some(ScmInfo(url("https://github.com/tmtsoftware/sbt-docs"), "scm:git:[email protected]:tmtsoftware/sbt-docs.git"))
scalaVersion := "2.12.15"
sbtPlugin := true
publishMavenStyle := true
resolvers += LocalMavenResolverForSbtPlugins
publishM2Configuration := publishM2Configuration.value.withResolverName(LocalMavenResolverForSbtPlugins.name)
// ScalaTest
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.10" % "test"
console / initialCommands := "import org.tmt.sbt.docs._"
enablePlugins(ScriptedPlugin)
// set up 'scripted; sbt plugin for testing sbt plugins
scriptedLaunchOpts ++=
Seq("-Xmx1024M", "-Dplugin.version=" + version.value, "--add-opens=java.base/java.lang=ALL-UNNAMED")
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.9.2")
addSbtPlugin("io.bullet" % "sbt-paradox-material-theme" % "0.7.0")
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
libraryDependencies += "com.sun.activation" % "javax.activation" % "1.2.0"
libraryDependencies += "org.parboiled" % "parboiled-java" % "1.4.0"
resolvers += "Jenkins repo" at "https://repo.jenkins-ci.org/public/"
addSbtPlugin("ohnosequences" % "sbt-github-release" % "0.7.0")