diff --git a/.editorconfig b/.editorconfig index 4c509b592c4..fc99647e201 100644 --- a/.editorconfig +++ b/.editorconfig @@ -23,4 +23,5 @@ indent_size = 4 indent_style = space insert_final_newline = true spaces_around_operators = true -wildcard_import_limit = 999 \ No newline at end of file +wildcard_import_limit = 999 +imports_layout = java.**, |, javax.**, |, groovy.**, org.apache.groovy.**, org.codehaus.groovy.**, |, jakarta.**, |, *, |, io.spring.**, org.springframework.**, |, grails.**, org.apache.grails.**, org.grails.**, |, $* \ No newline at end of file diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 8352fa57be0..51556fc4a69 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,3 +1,5 @@ # .git-blame-ignore-revs # Reformat code: https://github.com/apache/grails-core/pull/14925 20c3278683f2993e23c947c409eafa978c0aefb7 +# Reformat code for hibernate 7 +811bacd377678e22bac6308065da28b1caa17700 \ No newline at end of file diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ef4cb95ae2b..afebcffa9d4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -30,10 +30,12 @@ on: push: branches: - '[4-9]+.[0-9]+.x' + - '8.0.x-hibernate7.*' pull_request: # The branches below must be a subset of the branches above branches: - '[4-9]+.[0-9]+.x' + - '8.0.x-hibernate7.*' # queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index f727e1ad5b5..2c8b58d301f 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -18,6 +18,7 @@ on: push: branches: - '[0-9]+.[0-9]+.x' + - '8.0.x-hibernate7.*' pull_request: workflow_dispatch: # queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits @@ -43,18 +44,27 @@ jobs: with: develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }} - name: "🔎 Check Core Projects" - run: ./gradlew codeStyle + run: | + mkdir -p build/reports/codestyle + ./gradlew codeStyle --continue 2>&1 | tee build/codestyle-output.log || true + # Extract Spotless violations into a separate report + sed -n '/The following files had format violations:/,/Run.*spotlessApply.*to fix all violations\./p' build/codestyle-output.log > build/reports/codestyle/spotless-violations.txt || true + # Fail the step if the Gradle build actually failed + grep -q "BUILD SUCCESSFUL" build/codestyle-output.log - name: "📤 Upload Failure Reports" if: always() uses: actions/upload-artifact@v7.0.0 with: name: core-reports - path: build/reports/codestyle/ + path: | + build/reports/codestyle/ + **/build/reports/pmd/ + **/build/reports/spotbugs/ - name: "📋 Publish Code Style Report in Job Summary" if: always() run: | echo "## 🔎 Code Style Report - Core Projects" >> $GITHUB_STEP_SUMMARY - for file in build/reports/codestyle/checkstyle/*.xml build/reports/codestyle/codenarc/*.xml; do + for file in build/reports/codestyle/spotless-violations.txt build/reports/codestyle/checkstyle/*.xml build/reports/codestyle/codenarc/*.xml; do [ -f "$file" ] || continue if grep -q "> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 0d0fa989867..5f4a9c75ae2 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -18,6 +18,7 @@ on: push: branches: - '[0-9]+.[0-9]+.x' + - '8.0.x-hibernate7.*' pull_request: workflow_dispatch: # Queue jobs - cancel in-progress PR runs when new commits pushed, but allow branch builds to complete diff --git a/.github/workflows/groovy-joint-workflow.yml b/.github/workflows/groovy-joint-workflow.yml index bd4811baf35..5dd72e73ec8 100644 --- a/.github/workflows/groovy-joint-workflow.yml +++ b/.github/workflows/groovy-joint-workflow.yml @@ -17,10 +17,12 @@ name: "CI - Groovy Joint Validation Build" on: push: branches: - - '[4-9]+.[0-9]+.x' + - '[0-9]+.[0-9]+.x' + - '8.0.x-hibernate7.*' pull_request: branches: - - '[4-9]+.[0-9]+.x' + - '[0-9]+.[0-9]+.x' + - '8.0.x-hibernate7.*' workflow_dispatch: # queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits concurrency: diff --git a/.github/workflows/rat.yml b/.github/workflows/rat.yml index 5ed00c3f957..e1b99829537 100644 --- a/.github/workflows/rat.yml +++ b/.github/workflows/rat.yml @@ -17,14 +17,12 @@ name: "Licensing - RAT Report" on: push: branches: - - '[4-9]+.[0-9]+.x' - - '[3-9]+.[3-9]+.x' - - license-audit + - '[0-9]+.[0-9]+.x' + - '8.0.x-hibernate7.*' pull_request: branches: - - '[4-9]+.[0-9]+.x' - - '[3-9]+.[3-9]+.x' - - license-audit + - '[0-9]+.[0-9]+.x' + - '8.0.x-hibernate7.*' workflow_dispatch: # queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits concurrency: diff --git a/.gitignore b/.gitignore index 4ced48d7f4f..69943e57e15 100644 --- a/.gitignore +++ b/.gitignore @@ -52,6 +52,8 @@ prodDb.mv.db testWatchedFile.properties _alternativeTable.gsp **/src/en/ref/Versions/Grails BOM.adoc +**/src/en/ref/Versions/Grails BOM Hibernate5.adoc +**/src/en/ref/Versions/Grails BOM Hibernate7.adoc stacktrace.log target tmp/ @@ -59,3 +61,7 @@ tmp/ !etc/bin etc/bin/results .vscode/ +STATE_SNAPSHOT.xml +0_build_grails.txt +*_VIOLATIONS.md +/TEST_FAILURES.md diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index ab13aa909ae..ce4b40f7953 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -54,6 +54,7 @@ +