forked from piotrga/async-dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sbt
More file actions
34 lines (26 loc) · 1.04 KB
/
release.sbt
File metadata and controls
34 lines (26 loc) · 1.04 KB
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
import sbtrelease._
import sbtrelease.ReleasePlugin.ReleaseKeys._
import sbt.Package.ManifestAttributes
// RELEASE PLUGIN
releaseSettings
nextVersion := { ver => Version(ver).map(_.bumpBugfix.asSnapshot.string).getOrElse(versionFormatError) }
// PUBLISHING
publishMavenStyle := true
publishTo := Some(Resolver.file("piotrga", file("/root/async-dynamo-master")))
packageOptions <<= (Keys.version, Keys.name, Keys.artifact) map {
(version: String, name: String, artifact: Artifact) =>
Seq(ManifestAttributes(
"Implementation-Vendor" -> "piotrga",
//"Implementation-Title" -> name,
"Version" -> version,
"Build-Number" -> Option(System.getenv("GO_PIPELINE_COUNTER")).getOrElse("NOT_GO_BUILD"),
//"Group-Id" -> organization,
"Artifact-Id" -> artifact.name,
"Git-SHA1" -> Git.hash,
"Git-Branch" -> Git.branch,
"Build-Jdk" -> System.getProperty("java.version"),
"Built-When" -> (new java.util.Date).toString,
"Build-Machine" -> java.net.InetAddress.getLocalHost.getHostName
)
)
}