Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- if: github.event_name == 'push'
run: ./gradlew :PdCore:pd-core:publishToSonatype
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassphrase: ${{ secrets.SIGNING_PASSPHRASE }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
#ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
#ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
10 changes: 5 additions & 5 deletions PdCore/pd-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ publishing {
}
}

// ossrh requires signed releases, but not snapshots.
// Maven Central requires signed releases, but not snapshots.
// This configures signing if a key is found.
// The following environment variables provide a signing key and passphrase:
// export ORG_GRADLE_PROJECT_signingKey=`cat private.pgp`
// export ORG_GRADLE_PROJECT_signingPassword="<passphrase>"
// export ORG_GRADLE_PROJECT_signingPassphrase="<passphrase>"
// After making the above available, you can try signing using
// ./gradlew signMavenPublication
def hasSigningKey = project.hasProperty('signingKeyId') || project.hasProperty('signingKey')
Expand All @@ -173,13 +173,13 @@ void sign(Project project) {
required { project.gradle.taskGraph.hasTask('required') }
def signingKeyId = project.findProperty('signingKeyId')
def signingKey = project.findProperty('signingKey')
def signingPassword = project.findProperty('signingPassword')
def signingPassphrase = project.findProperty('signingPassphrase')
if (signingKeyId) {
// use in-memory ascii-armored OpenPGP subkey
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassphrase)
} else if (signingKey) {
// use in-memory ascii-armored key
useInMemoryPgpKeys(signingKey, signingPassword)
useInMemoryPgpKeys(signingKey, signingPassphrase)
}
sign publishing.publications.maven
}
Expand Down