forked from sbt/sbt-native-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
56 lines (46 loc) · 1.51 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
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
enablePlugins(SphinxPlugin, SiteScaladocPlugin)
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,
releaseStepTask(GhPagesKeys.pushSite)
)
// bintray config
bintrayOrganization := Some("sbt")
bintrayRepository := "sbt-plugin-releases"
// scalafmt
scalafmtConfig := Some(file(".scalafmt.conf"))