Skip to content

Commit

Permalink
Fix plugin release
Browse files Browse the repository at this point in the history
  • Loading branch information
blootsvoets committed Sep 13, 2023
1 parent 9161e7d commit 339d67f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ jobs:
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: ./gradlew -Psigning.gnupg.keyName=CBEF2CF0 -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} :radar-commons-gradle:publish
run: ./gradlew -Psigning.gnupg.keyName=CBEF2CF0 -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} :radar-commons-gradle:publish :radar-commons-gradle:closeAndReleaseSonatypeStagingRepository
4 changes: 3 additions & 1 deletion radar-commons-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ val dokkaJar by tasks.registering(Jar::class) {
tasks.withType<GenerateMavenPom> {
afterEvaluate {
pom.apply {
name.set(project.name)
url.set(githubUrl)
description.set(project.description)
licenses {
license {
Expand Down Expand Up @@ -159,7 +161,7 @@ signing {
}

tasks.withType<Sign> {
onlyIf { gradle.taskGraph.hasTask(project.tasks["publish"]) }
onlyIf { gradle.taskGraph.hasTask(project.tasks["publishToSonatype"]) }
dependsOn(sourcesJar)
dependsOn(dokkaJar)
}
Expand Down

0 comments on commit 339d67f

Please sign in to comment.