forked from sbt/sbt-native-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
81 lines (70 loc) · 2.65 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
76
77
78
79
80
sbtPlugin := true
name := "sbt-native-packager"
organization := "com.typesafe.sbt"
scalaVersion in Global := "2.10.5"
scalacOptions in Compile ++= Seq("-deprecation", "-target:jvm-1.7")
libraryDependencies ++= Seq(
"org.apache.commons" % "commons-compress" % "1.4.1",
// for jdkpackager
"org.apache.ant" % "ant" % "1.9.6",
// these dependencies have to be explicitly added by the user
"com.spotify" % "docker-client" % "3.5.13" % "provided",
"org.vafer" % "jdeb" % "1.3" % "provided" artifacts (Artifact("jdeb", "jar", "jar")),
"org.scalatest" %% "scalatest" % "2.2.4" % "test"
)
// configure github page
site.settings
com.typesafe.sbt.SbtSite.SiteKeys.siteMappings <+= (baseDirectory) map { dir =>
val nojekyll = dir / "src" / "site" / ".nojekyll"
nojekyll -> ".nojekyll"
}
site.sphinxSupport()
site.includeScaladoc()
ghpages.settings
git.remoteRepo := "[email protected]:sbt/sbt-native-packager.git"
// scripted test settings
scriptedSettings
scriptedLaunchOpts <+= version apply { v => "-Dproject.version="+v }
// Release configuration
releasePublishArtifactsAction := PgpKeys.publishSigned.value
publishMavenStyle := false
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runTest,
releaseStepInputTask(scripted, " universal/* debian/* rpm/* docker/* ash/* jar/* bash/* jdkpackager/*"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
pushChanges
)
// bintray config
bintrayOrganization := Some("sbt")
bintrayRepository := "sbt-plugin-releases"
// scalariform
import scalariform.formatter.preferences._
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)