-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
68 lines (56 loc) · 2.25 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
import sbt.Keys._
import Dependencies._
import sbt.ScriptedPlugin.autoImport.scriptedLaunchOpts
// Release
import ReleaseTransformations._
lazy val `sbt-docker-image` = project
.in(file("."))
.enablePlugins(SbtPlugin)
.settings(
organization := "com.github.regis-leray",
name := "sbt-docker-image",
description := "sbt docker image plugin",
sbtPlugin := true,
crossSbtVersions := Vector("1.2.8", "0.13.18"),
releaseCrossBuild := true,
coverageHighlighting := false,
homepage := Some(url("https://github.com/regis-leray/sbt-docker-image")),
scmInfo := Some(ScmInfo(url("https://github.com/regis-leray/sbt-docker-image"), "[email protected]:regis-leray/sbt-docker-image.git")),
developers := List(Developer("username", "Regis Leray", "regis.leray at gmail dot com", url("https://github.com/regis-leray"))),
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
publishMavenStyle := true,
scalaVersion := "2.12.8",
scalacOptions ++= Seq("-encoding", "UTF-8", "-unchecked", "-deprecation", "-feature", "-Xlint", "-Xfatal-warnings"),
scalacOptions ++= Seq("-language:reflectiveCalls", "-language:implicitConversions"),
javacOptions in(Compile, compile) ++= Seq("-source", "1.8", "-target", "1.8"),
javacOptions in(Compile, doc) := Seq("-source", "1.8"),
credentials += Credentials( Path.userHome / ".sbt" / "sonatype_credential" ),
publishTo := {
if (isSnapshot.value)
Some(Opts.resolver.sonatypeSnapshots)
else
Some(Opts.resolver.sonatypeStaging)
},
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("^ compile"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^ publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("^ sonatypeReleaseAll"),
pushChanges
),
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false
)
.settings(
libraryDependencies += scalaTest % Test
)