Skip to content

Commit

Permalink
Added gpg keyring as encrypted file
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel committed Jan 27, 2019
1 parent efb9ec3 commit 9c2043b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ jdk:
sudo: false

before_install:
- openssl aes-256-cbc -K $encrypted_1aa081e50934_key -iv $encrypted_1aa081e50934_iv -in all.gpg.enc -out all.gpg -d
- gpg --import all.gpg
- openssl aes-256-cbc -K $encrypted_1aa081e50934_key -iv $encrypted_1aa081e50934_iv -in sksamuel.gpg.enc -out sksamuel.gpg -d

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand Down
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ buildscript {
ext.kotlin_version = '1.3.20'
ext.isTravis = System.getProperty("TRAVIS") == "true"
ext.travisBuildNumber = System.getProperty("TRAVIS_BUILD_NUMBER")
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
repositories {
mavenCentral()
}
Expand Down Expand Up @@ -74,10 +73,6 @@ allprojects {
sign configurations.archives
}

tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}

uploadArchives {
repositories {
mavenDeployer {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#these should be overriden if you want to do release
signing.keyId=xx
signing.password=xx
signing.secretKeyRingFile=~/.gnupg/secring.gpg
signing.secretKeyRingFile=sksamuel.gpg

ossrhUsername=xx
ossrhPassword=xx
Expand Down
Binary file added sksamuel.gpg.enc
Binary file not shown.

0 comments on commit 9c2043b

Please sign in to comment.