-
Notifications
You must be signed in to change notification settings - Fork 2
/
publish.sbt
73 lines (63 loc) · 2.11 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
////
// To release a new version of this project, type
//
// sbt release
//
// Then, you must release the deployment from oss.sonatype.org to Maven Central,
// see http://central.sonatype.org/pages/releasing-the-deployment.html
//
// In order to publish, you will first need to have your sbt-pgp key configured
// and published, and your TIM Group Sonatype credentials file present, please
// see below for more details.
////
//
// Force sbt-pgp to ignore the system gpg and use default jvm implementation
// and file locations, see http://www.scala-sbt.org/sbt-pgp/usage.html
//
useGpg := false
pgpSecretRing := Path.userHome / ".sbt" / "gpg" / "secring.asc"
pgpPublicRing := Path.userHome / ".sbt" / "gpg" / "pubring.asc"
//
// Below are the standard configuration steps to publish to Maven Central via
// oss.sonatype.org using sbt. For more information, please see
// http://www.scala-sbt.org/0.13/docs/Using-Sonatype.html
//
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
// In order publish to oss.sonatype.org as TIM Group, you must create
// the file `~/.timgroup_sonatype_credentials` with the following lines:
//
// realm=Sonatype Nexus Repository Manager
// host=oss.sonatype.org
// user=<USERNAME>
// password=<PASSWORD>
//
credentials += Credentials(Path.userHome / ".timgroup_sonatype_credentials")
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<scm>
<url>git@github.com:tim-group/iterata.git</url>
<connection>scm:git:git@github.com:tim-group/iterata.git</connection>
</scm>
<developers>
<developer>
<id>ms-tg</id>
<name>Marc Siegel</name>
<url>https://github.com/ms-tg</url>
</developer>
<developer>
<id>flicken</id>
<name>Brian Roberts</name>
<url>https://github.com/flicken</url>
</developer>
</developers>
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseCrossBuild := true