-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
46 lines (37 loc) · 1.58 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._
import org.typelevel.scalacoptions.ScalacOptions
Global / onChangedBuildSource := ReloadOnSourceChanges
lazy val root = project
.withId("sbt-prompt")
.in(file("."))
.settings(
sbtPlugin := true,
libraryDependencies += {
val currentSbtVersion = (pluginCrossBuild/sbtBinaryVersion).value
Defaults.sbtPluginExtra("com.github.sbt" % "sbt-git" % "2.1.0", currentSbtVersion, scalaBinaryVersion.value)
},
libraryDependencies += "org.slf4j" % "slf4j-nop" % "2.0.16",
description := "An SBT plugin for making your SBT prompt more awesome",
organization := "com.scalapenos",
licenses := List("MIT" -> url("http://opensource.org/licenses/MIT")),
startYear := Some(2014),
homepage := Some(url("https://github.com/agemooij/sbt-prompt")),
organizationHomepage := Some(url("https://github.com/agemooij/sbt-prompt")),
developers := List(
Developer(
"agemooij",
"Age Mooij",
"age.mooij@gmail.com",
url("https://github.com/agemooij/")
)
),
versionScheme := Some("semver-spec"),
scalacOptions := Seq("-encoding", "utf8", "-deprecation", "-Xlog-reflective-calls", "-Ywarn-unused-import"),
semanticdbVersion := scalafixSemanticdb.revision,
semanticdbEnabled := true,
scalafmtOnCompile := true,
scalafixOnCompile := true,
tpolecatScalacOptions ++= Set(ScalacOptions.explain),
Test / tpolecatExcludeOptions ++= Set(ScalacOptions.warnNonUnitStatement, ScalacOptions.warnValueDiscard),
Test / console / tpolecatExcludeOptions ++= ScalacOptions.defaultConsoleExclude,
)