Skip to content

Commit 7ab2727

Browse files
sign and pub
1 parent 9ec35e2 commit 7ab2727

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ cache:
2020
- $HOME/.ivy2/cache
2121
- $HOME/.sbt
2222

23+
before_install:
24+
- openssl aes-256-cbc -d -K $ENC_KEY -iv $ENC_IV -in project/gnupg/signkey.asc.enc -out project/gnupg/signkey.asc
25+
2326
after_success:
2427
- sbt coveralls
25-
- "[[ $TRAVIS_BRANCH == \"master\" ]] && { sbt publish; };"
28+
- "[[ $TRAVIS_BRANCH == \"master\" ]] && { sbt publishSigned; };"

build.sbt

+11-3
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,24 @@ publishTo := {
2828
Some("releases" at nexus + "service/local/staging/deploy/maven2")
2929
}
3030

31+
publishMavenStyle := true
3132
pomIncludeRepository := { _ => false }
3233
publishArtifact in Test := false
3334
crossPaths := false
3435

36+
useGpg := false
37+
usePgpKeyHex("5973708299E8EEEB4319D40156A5D5DE07E4EAA9")
38+
pgpPublicRing := baseDirectory.value / "project" / "gnupg" / "signkey.asc"
39+
pgpSecretRing := baseDirectory.value / "project" / "gnupg" / "signkey.asc"
40+
pgpPassphrase := sys.env.get("PGP_PASS").map(_.toArray)
41+
3542
licenses := Seq("MIT-style" -> url("http://www.opensource.org/licenses/mit-license.php"))
36-
homepage := Some(url("https://github.com/thm-mni-ii/Scala-PHP-Parser"))
43+
homepage := Some(url("https://github.com/thm-mni-ii/PHP-Parser"))
44+
3745
scmInfo := Some(
3846
ScmInfo(
39-
url("https://github.com/thm-mni-ii/Scala-PHP-Parser"),
40-
"scm:[email protected]:thm-mni-ii/Scala-PHP-Parser.git"
47+
url("https://github.com/thm-mni-ii/PHP-Parser"),
48+
"scm:[email protected]:thm-mni-ii/PHP-Parser.git"
4149
)
4250
)
4351
developers := List(

project/gnupg/signkey.asc.enc

9.72 KB
Binary file not shown.

project/plugins.sbt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
resolvers += Classpaths.sbtPluginReleases
22
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
3-
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.2.2")
3+
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.2.2")
4+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
5+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.1")

0 commit comments

Comments
 (0)