Skip to content

Commit

Permalink
Avoid conf cache during publishing where it causes issues with nexus-…
Browse files Browse the repository at this point in the history
…publish plugin
  • Loading branch information
lukebemish committed Dec 21, 2024
1 parent 285bc2c commit 9c42694
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -110,7 +110,7 @@
},
{
"name": "Publish",
"run": "./gradlew publish closeAndReleaseSonatypeStagingRepository",
"run": "./gradlew publish closeAndReleaseSonatypeStagingRepository --no-configuration-cache",
"id": "publish",
"env": {
"GPG_SIGNING_KEY": "${{ secrets.GPG_SIGNING_KEY }}",
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ managedVersioning {
gradleJob {
name.set 'publish'
needs.add('build')
gradlew 'Publish', 'publish', 'closeAndReleaseSonatypeStagingRepository'
// Conf cache disabled because the nexus-publish plugin doesn't seem to like it
gradlew 'Publish', 'publish', 'closeAndReleaseSonatypeStagingRepository', '--no-configuration-cache'
tag.set('${{needs.build.outputs.version}}')
secrets 'GPG_SIGNING_KEY', 'GPG_KEY_PASSWORD', 'CENTRAL_MAVEN_USER', 'CENTRAL_MAVEN_PASSWORD'
}
Expand Down

0 comments on commit 9c42694

Please sign in to comment.