-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
47 lines (38 loc) · 1.7 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
import sbt._
import scalariform.formatter.preferences._
lazy val root = project
.withId("sbt-prompt")
.in(file("."))
.settings(
sbtPlugin := true,
crossSbtVersions := Vector("1.8.2"),
libraryDependencies += {
val currentSbtVersion = (sbtBinaryVersion in pluginCrossBuild).value
Defaults.sbtPluginExtra("com.github.sbt" % "sbt-git" % "2.0.1", currentSbtVersion, scalaBinaryVersion.value)
},
libraryDependencies += "org.slf4j" % "slf4j-nop" % "1.7.25",
version := "1.0.3-SNAPSHOT",
organization := "com.scalapenos",
description := "An SBT plugin for making your SBT prompt more awesome",
startYear := Some(2014),
homepage := Some(url("https://github.com/agemooij/sbt-prompt")),
organizationHomepage := Some(url("https://github.com/agemooij/sbt-prompt")),
scalacOptions := Seq("-encoding", "utf8", "-deprecation", "-Xlog-reflective-calls"),
scalariformPreferences := scalariformPreferences.value
.setPreference(AlignParameters, false)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 90)
.setPreference(DoubleIndentConstructorArguments, true)
.setPreference(DoubleIndentMethodDeclaration, true)
.setPreference(RewriteArrowSymbols, true)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(NewlineAtEndOfFile, true)
.setPreference(AllowParamGroupsOnNewlines, true)
)
.settings(
publishMavenStyle := false,
bintrayOrganization := None,
bintrayRepository := "sbt-plugins",
bintrayPackageLabels := Seq("sbt", "plugin", "prompt", "awesome"),
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
)