From 9c4269407501a9869b9f673d3655ae37573b76d2 Mon Sep 17 00:00:00 2001 From: Luke Bemish Date: Sat, 21 Dec 2024 14:01:02 -0600 Subject: [PATCH] Avoid conf cache during publishing where it causes issues with nexus-publish plugin --- .github/workflows/release.yml | 2 +- build.gradle | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ec238d..d98c3bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}", diff --git a/build.gradle b/build.gradle index 59acde5..fd142b3 100644 --- a/build.gradle +++ b/build.gradle @@ -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' }