forked from sbt/sbt-native-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
70 lines (49 loc) · 1.92 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
import scalariform.formatter.preferences._
sbtPlugin := true
sbtVersion in Global := {
scalaBinaryVersion.value match {
case "2.10" => "0.13.0"
case "2.9.2" => "0.12.4"
}
}
scalaVersion in Global := "2.10.2"
crossScalaVersions := Seq("2.9.2", "2.10.2")
name := "sbt-native-packager"
organization := "com.typesafe.sbt"
scalacOptions in Compile += "-deprecation"
libraryDependencies += "org.apache.commons" % "commons-compress" % "1.4.1"
site.settings
com.typesafe.sbt.SbtSite.SiteKeys.siteMappings <+= (baseDirectory) map { dir =>
val nojekyll = dir / "src" / "site" / ".nojekyll"
nojekyll -> ".nojekyll"
}
site.sphinxSupport()
ghpages.settings
git.remoteRepo := "git@github.com:sbt/sbt-native-packager.git"
Bintray.settings
publishMavenStyle := false
scriptedSettings
scriptedLaunchOpts <+= version apply { v => "-Dproject.version="+v }
Release.settings
scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignParameters, false)
.setPreference(FormatXml, true)
.setPreference(SpaceInsideBrackets, false)
.setPreference(IndentWithTabs, false)
.setPreference(SpaceInsideParentheses, false)
.setPreference(MultilineScaladocCommentsStartOnFirstLine, false)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(CompactStringConcatenation, false)
.setPreference(PlaceScaladocAsterisksBeneathSecondAsterisk, false)
.setPreference(IndentPackageBlocks, true)
.setPreference(CompactControlReadability, false)
.setPreference(SpacesWithinPatternBinders, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 40)
.setPreference(DoubleIndentClassDeclaration, false)
.setPreference(PreserveSpaceBeforeArguments, false)
.setPreference(SpaceBeforeColon, false)
.setPreference(RewriteArrowSymbols, false)
.setPreference(IndentLocalDefs, false)
.setPreference(IndentSpaces, 2)
//.setPreference(AreserveDanglingCloseParenthesis, true)