From 8502758c1148a5955297e39789274402eb11e467 Mon Sep 17 00:00:00 2001 From: James Daugherty Date: Mon, 9 Dec 2024 08:52:40 -0500 Subject: [PATCH 1/2] Gradle cleanup --- .../build.gradle | 13 ------------- examples/audit-test/build.gradle | 12 ------------ plugin/build.gradle | 9 --------- 3 files changed, 34 deletions(-) diff --git a/examples/audit-test-allow-update-outside-transaction/build.gradle b/examples/audit-test-allow-update-outside-transaction/build.gradle index 99825c61..5f45a743 100644 --- a/examples/audit-test-allow-update-outside-transaction/build.gradle +++ b/examples/audit-test-allow-update-outside-transaction/build.gradle @@ -1,7 +1,4 @@ buildscript { - ext { - grailsVersion = project.grailsVersion - } repositories { maven { url "https://repo.grails.org/grails/core" } } @@ -14,7 +11,6 @@ plugins { id "com.bertramlabs.asset-pipeline" version "$assetPipelineVersion" } - version project.projectVersion group "audit.test" @@ -24,11 +20,6 @@ apply plugin: 'idea' apply plugin: "org.grails.grails-web" apply plugin: "org.grails.grails-gsp" -ext { - grailsVersion = project.grailsVersion - gradleWrapperVersion = project.gradleWrapperVersion -} - assets { minifyJs = true minifyCss = true @@ -79,10 +70,6 @@ dependencies { testImplementation "org.grails:grails-web-testing-support" } -task wrapper(type: Wrapper) { - gradleVersion = gradleWrapperVersion -} - test { testLogging { showStandardStreams = true diff --git a/examples/audit-test/build.gradle b/examples/audit-test/build.gradle index 578de005..0ff0a7e5 100644 --- a/examples/audit-test/build.gradle +++ b/examples/audit-test/build.gradle @@ -1,7 +1,4 @@ buildscript { - ext { - grailsVersion = project.grailsVersion - } repositories { maven { url "https://repo.grails.org/grails/core" } } @@ -23,11 +20,6 @@ apply plugin: 'idea' apply plugin: "org.grails.grails-web" apply plugin: "org.grails.grails-gsp" -ext { - grailsVersion = project.grailsVersion - gradleWrapperVersion = project.gradleWrapperVersion -} - assets { minifyJs = true minifyCss = true @@ -78,10 +70,6 @@ dependencies { testCompileOnly "org.mockito:mockito-core" } -task wrapper(type: Wrapper) { - gradleVersion = gradleWrapperVersion -} - tasks.withType(Test).configureEach { Task it -> useJUnitPlatform() diff --git a/plugin/build.gradle b/plugin/build.gradle index 5ca7f9ae..c5a059c3 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -22,11 +22,6 @@ apply plugin: "idea" apply plugin: "org.grails.grails-plugin" apply plugin: "org.grails.grails-gsp" -ext { - grailsVersion = project.grailsVersion - gradleWrapperVersion = project.gradleWrapperVersion -} - repositories { mavenLocal() mavenCentral() @@ -62,10 +57,6 @@ dependencies { bootJar.enabled = false -task wrapper(type: Wrapper) { - gradleVersion = gradleWrapperVersion -} - apply plugin: "org.grails.grails-publish" grailsPublish { githubSlug = 'grails-plugins/grails-audit-logging-plugin' From e5ef6376a721a69e34dfca5216510f8e0c2c11bd Mon Sep 17 00:00:00 2001 From: James Daugherty Date: Mon, 9 Dec 2024 10:24:44 -0500 Subject: [PATCH 2/2] Fix release workflow to use the correct variables --- .github/workflows/release.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2763e7b6..2e38292b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,10 +57,10 @@ jobs: - name: "🚀 Publish to Sonatype OSSRH" id: publish env: - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - SONATYPE_NEXUS_URL: ${{ secrets.SONATYPE_NEXUS_URL }} - SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} + NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }} + NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }} + NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }} + NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }} SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} SECRING_FILE: ${{ secrets.SECRING_FILE }} @@ -98,9 +98,10 @@ jobs: env: DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_USER }} DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_KEY }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} + NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }} + NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }} + NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }} + NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }} working-directory: ./plugin run: > ../gradlew