This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch 8.0.x-stage-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/8.0.x-stage-hibernate7 by this 
push:
     new f8d475c828 Remove code analysis from forge since they dont' apply 
those plugins & disable spot bugs due to a known issue with gradle plugin 
testing
f8d475c828 is described below

commit f8d475c82881100558a0d325a0148b22060c8e1a
Author: James Daugherty <[email protected]>
AuthorDate: Sat May 16 23:05:43 2026 -0400

    Remove code analysis from forge since they dont' apply those plugins & 
disable spot bugs due to a known issue with gradle plugin testing
---
 .github/workflows/codeanalysis.yml | 37 -------------------------------------
 .github/workflows/codestyle.yml    | 34 ----------------------------------
 grails-forge/build.gradle          |  1 -
 grails-gradle/gradle.properties    |  4 ++++
 4 files changed, 4 insertions(+), 72 deletions(-)

diff --git a/.github/workflows/codeanalysis.yml 
b/.github/workflows/codeanalysis.yml
index d428381bf2..b7a439ca4b 100644
--- a/.github/workflows/codeanalysis.yml
+++ b/.github/workflows/codeanalysis.yml
@@ -99,40 +99,3 @@ jobs:
             file="grails-gradle/build/reports/violations/$report"
             [ -f "$file" ] && cat "$file" >> $GITHUB_STEP_SUMMARY || true
           done
-  check_grails_forge_projects:
-    name: "Forge Projects"
-    runs-on: ubuntu-24.04
-    steps:
-      - name: "🌐 Output Agent IP" # in the event RAO blocks this agent, this 
can be used to debug it
-        run: curl -s https://api.ipify.org
-      - name: "📥 Checkout repository"
-        uses: actions/checkout@v6
-      - name: "☕️ Setup JDK"
-        uses: actions/setup-java@v4
-        with:
-          distribution: liberica
-          java-version: 21
-      - name: "🐘 Setup Gradle"
-        uses: 
gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
-        with:
-          develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
-      - name: "🔎 Check Forge Projects"
-        working-directory: grails-forge
-        run: >
-          ./gradlew aggregateAnalysisViolations --continue
-          -Pgrails.codeanalysis.enabled.pmd=true
-          -Pgrails.codeanalysis.enabled.spotbugs=true
-      - name: "📤 Upload Reports"
-        if: always()
-        uses: actions/[email protected]
-        with:
-          name: forge-reports
-          path: grails-forge/build/reports/violations/
-      - name: "📋 Publish Code Analysis Report in Job Summary"
-        if: always()
-        run: |
-          echo "## 🔎 Code Analysis Report - Forge Projects" >> 
$GITHUB_STEP_SUMMARY
-          for report in PMD_VIOLATIONS.md SPOTBUGS_VIOLATIONS.md; do
-            file="grails-forge/build/reports/violations/$report"
-            [ -f "$file" ] && cat "$file" >> $GITHUB_STEP_SUMMARY || true
-          done
diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml
index 6384aa73c9..e4f4d7a1ab 100644
--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -93,37 +93,3 @@ jobs:
             file="grails-gradle/build/reports/violations/$report"
             [ -f "$file" ] && cat "$file" >> $GITHUB_STEP_SUMMARY || true
           done
-  check_grails_forge_projects:
-    name: "Forge Projects"
-    runs-on: ubuntu-24.04
-    steps:
-      - name: "🌐 Output Agent IP" # in the event RAO blocks this agent, this 
can be used to debug it
-        run: curl -s https://api.ipify.org
-      - name: "📥 Checkout repository"
-        uses: actions/checkout@v6
-      - name: "☕️ Setup JDK"
-        uses: actions/setup-java@v4
-        with:
-          distribution: liberica
-          java-version: 21
-      - name: "🐘 Setup Gradle"
-        uses: 
gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
-        with:
-          develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
-      - name: "🔎 Check Forge Projects"
-        working-directory: grails-forge
-        run: ./gradlew aggregateStyleViolations --continue
-      - name: "📤 Upload Reports"
-        if: always()
-        uses: actions/[email protected]
-        with:
-          name: forge-reports
-          path: grails-forge/build/reports/violations/
-      - name: "📋 Publish Code Style Report in Job Summary"
-        if: always()
-        run: |
-          echo "## 🔎 Code Style Report - Forge Projects" >> 
$GITHUB_STEP_SUMMARY
-          for report in CODENARC_VIOLATIONS.md CHECKSTYLE_VIOLATIONS.md; do
-            file="grails-forge/build/reports/violations/$report"
-            [ -f "$file" ] && cat "$file" >> $GITHUB_STEP_SUMMARY || true
-          done
diff --git a/grails-forge/build.gradle b/grails-forge/build.gradle
index a7ac18ca66..d262f97fab 100644
--- a/grails-forge/build.gradle
+++ b/grails-forge/build.gradle
@@ -25,7 +25,6 @@ import java.time.format.DateTimeFormatter
 plugins {
     id 'org.apache.grails.buildsrc.properties'
     id 'org.apache.grails.buildsrc.dependency-validator'
-    id 'org.apache.grails.gradle.grails-violation-aggregation'
 }
 
 ext {
diff --git a/grails-gradle/gradle.properties b/grails-gradle/gradle.properties
index d58addb41b..946d9a6cce 100644
--- a/grails-gradle/gradle.properties
+++ b/grails-gradle/gradle.properties
@@ -16,3 +16,7 @@
 org.gradle.caching=true
 org.gradle.daemon=true
 org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1536M
+
+# SpotBugs is disabled for Gradle plugin projects: the plugin classpath types 
(e.g. NexusPublishPlugin)
+# are not available during bytecode analysis, causing false failures unrelated 
to code quality.
+grails.codeanalysis.enabled.spotbugs=false

Reply via email to