Skip to content

Commit

Permalink
Sign maven artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
wyrzyk committed Mar 12, 2021
1 parent 1d9eb43 commit 9059be5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ jobs:
run: |
./gradlew release -Prelease.customUsername=${{ secrets.REPOSITORY_ACCESS_TOKEN }}
./gradlew publish
- name : Test
env :
ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
run : |
./gradlew publishToMavenLocal --stacktrace
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
`java-library`
id("com.atlassian.performance.tools.gradle-release").version("0.7.3")
signing
}

tasks.wrapper {
Expand Down Expand Up @@ -78,3 +79,10 @@ group = "com.atlassian.db.replica"
gradleRelease {
atlassianPrivateMode = true
}

signing {
val signingKeyId: String? by project
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
signing.keyId=FBDD8FF6

0 comments on commit 9059be5

Please sign in to comment.