-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish.sbt
38 lines (23 loc) · 1.02 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
import com.typesafe.sbt.pgp.PgpKeys
enablePlugins(SignedAetherPlugin)
disablePlugins(AetherPlugin)
overridePublishSignedSettings
// do not include all repositories in the POM
// (this is important for staging since artifacts published to a staging repository
// can be promoted (i.e. published) to another repository)
pomAllRepositories := false
// make sure no repositories show up in the POM file
pomIncludeRepository := { _ => false }
// include *.zip and *.gz artifacts in the POM dependency section
makePomConfiguration :=
makePomConfiguration.value.copy(includeTypes = Set(Artifact.DefaultType, Artifact.PomType, "zip", "gz"))
// publish Maven POM metadata (instead of Ivy);
// this is important for the UpdatesPlugin's ability to find available updates.
publishMavenStyle := true
// Specify a publisher in a local.*.sbt file somewhere.
PgpKeys.useGpg := true
PgpKeys.useGpgAgent := true
pgpSecretRing := file("local.secring.gpg")
pgpPublicRing := file("local.pubring.gpg")
git.baseVersion := Versions.version
versionWithGit