-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
75 lines (70 loc) · 2.41 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
63
64
65
66
67
68
69
70
71
72
73
74
75
ThisBuild / scalafixDependencies ++= Seq(
"com.github.liancheng" %% "organize-imports" % "0.6.0",
)
ThisBuild / homepage := Some(url("https://github.com/atedeg/sbt-ubiquitous-scaladoc"))
ThisBuild / organization := "dev.atedeg"
ThisBuild / licenses := List("MIT" -> url("https://opensource.org/licenses/MIT"))
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / wartremoverErrors ++= Warts.allBut(Wart.Throw, Wart.Recursion)
ThisBuild / developers := List(
Developer(
"giacomocavalieri",
"Giacomo Cavalieri",
url("https://github.com/giacomocavalieri"),
),
Developer(
"ndido98",
"Nicolò Di Domenico",
url("https://github.com/ndido98"),
),
Developer(
"nicolasfara",
"Nicolas Farabegoli",
url("https://github.com/nicolasfarabegoli"),
),
Developer(
"vitlinda",
"Linda Vitali",
url("https://github.com/vitlinda"),
),
)
lazy val startupTransition: State => State = { s: State =>
"conventionalCommits" :: s
}
addCommandAlias("testPlugin", "set ThisBuild / version := \"0.0.0-SNAPSHOT\"; scripted")
lazy val root = project
.in(file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-ubiquitous-scaladoc",
sbtPlugin := true,
scriptedBufferLog := false,
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalacOptions ++= Seq("-Ywarn-unused-import", "-Ypartial-unification"),
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
libraryDependencies ++= Seq(
"net.ruippeixotog" %% "scala-scraper" % "3.1.1",
"net.steppschuh.markdowngenerator" % "markdowngenerator" % "1.3.1.1",
"com.github.pathikrit" %% "better-files" % "3.9.2",
"io.circe" %% "circe-yaml" % "1.15.0",
"io.circe" %% "circe-core" % "0.14.6",
"io.circe" %% "circe-generic" % "0.14.6",
"io.circe" %% "circe-parser" % "0.14.6",
"org.typelevel" %% "cats-core" % "2.10.0",
"org.scalatest" %% "scalatest" % "3.2.18" % "test",
),
publishTo := sonatypePublishToBundle.value,
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
Global / onLoad := {
val old = (Global / onLoad).value
startupTransition compose old
},
)