-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpublish.sbt
77 lines (60 loc) · 1.66 KB
/
publish.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
disablePlugins(aether.AetherPlugin)
enablePlugins(aether.SignedAetherPlugin)
overridePublishSignedSettings
overridePublishLocalSettings
publishTo := {
if (isSnapshot.value) {
Some(Opts.resolver.sonatypeSnapshots)
} else {
Some(Opts.resolver.sonatypeStaging)
}
}
pomIncludeRepository := { x =>
false
}
packageOptions += {
val title = name.value
val ver = version.value
val vendor = organization.value
Package.ManifestAttributes(
"Created-By" -> "Scala Build Tool",
"Built-By" -> System.getProperty("user.name"),
"Build-Jdk" -> System.getProperty("java.version"),
"Specification-Title" -> title,
"Specification-Version" -> ver,
"Specification-Vendor" -> vendor,
"Implementation-Title" -> title,
"Implementation-Version" -> ver,
"Implementation-Vendor-Id" -> vendor,
"Implementation-Vendor" -> vendor
)
}
credentials ++= Seq(
Credentials(Path.userHome / ".sbt" / ".sonatype-credentials"),
)
homepage := Some(url("https://github.com/magott/scravatar"))
startYear := Some(2017)
licenses := Seq(
"Apache2" -> url("https://github.com/magott/scravatar/blob/master/LICENSE")
)
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ =>
false
}
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
scmInfo := Some(
ScmInfo(
new URL("https://github.com/magott/scravatar"),
"scm:git:[email protected]:magott/scravatar.git",
Some("scm:git:[email protected]:magott/scravatar.git")
))
developers ++= List(
Developer(
"magott",
"Morten Andersen-Gott",
"",
null
),
)