fix(ci): replace deprecated -b option with --build-file#51
Open
KamalDeveloper11 wants to merge 7 commits intoapache:mainfrom
Open
fix(ci): replace deprecated -b option with --build-file#51KamalDeveloper11 wants to merge 7 commits intoapache:mainfrom
KamalDeveloper11 wants to merge 7 commits intoapache:mainfrom
Conversation
added 4 commits
October 5, 2025 12:47
…lity issues - Replace gradle commands with ./gradlew to use project-specific Gradle version - Fix compatibility issues with Gradle 9.x in GitHub Actions - Use -b option with gradle wrapper (Gradle 8.14.3) which still supports it - Update both tests.yml and codeql-analysis.yml workflows
…rror - Change bootstrap step from './gradlew -b bootstrap.gradle' to 'gradle -b bootstrap.gradle' - Bootstrap step now uses system gradle to download the wrapper - Build step continues to use './gradlew' after bootstrap creates it - Fixes 'No such file or directory' error in GitHub Actions
- Fix run command indentation in tests.yml and codeql-analysis.yml - Ensure proper YAML syntax for GitHub Actions - Commands should be directly under 'run:' not indented further
Author
|
Hi maintainers! I've fixed the Gradle command compatibility issues in the CI workflows. The changes are ready for review and the workflows are awaiting approval to run. Summary of changes:
Could someone please approve the workflows so we can verify the fix works? The changes should resolve the CI failures. Thanks! |
added 3 commits
October 5, 2025 15:21
… 9.x compatibility issues - Add chmod +x ./gradlew to ensure wrapper is executable - Use ./gradlew -b bootstrap.gradle instead of gradle -b bootstrap.gradle - This avoids system Gradle 9.1.0 which removed -b option - Use project's Gradle wrapper (8.14.3) which supports -b option - Should resolve 'Unknown command-line option -b' errors
- Update gradle-wrapper.properties to use Gradle 9.1.0 - Replace deprecated -b option with -p option in workflows - Update workflow files to use ./gradlew -p . bootstrap.gradle - Update documentation to reflect Gradle 9.x requirements - Modernize build system for future compatibility - Addresses DATAFU-183: GitHub Actions CI failing with Gradle 9.x
- Keep Gradle 8.14.3 wrapper (compatible with existing codebase) - Use ./gradlew -b bootstrap.gradle (works with Gradle 8.14.3) - Add chmod +x ./gradlew to ensure wrapper is executable - This avoids system Gradle 9.x compatibility issues - Addresses DATAFU-183: GitHub Actions CI failing with Gradle 9.x Note: Gradle 9.x upgrade requires significant buildSrc plugin updates due to breaking changes in JavaExec and other APIs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaced deprecated gradle -b option with gradle --build-file to fix CI warnings and future Gradle 9 compatibility.