Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(ci): replace deprecated -b option with --build-file#51

Open
KamalDeveloper11 wants to merge 7 commits into
apache:main from
KamalDeveloper11:fix/ci-gradle9
Open

fix(ci): replace deprecated -b option with --build-file #51
KamalDeveloper11 wants to merge 7 commits into
apache:main from
KamalDeveloper11:fix/ci-gradle9

Conversation

@KamalDeveloper11

@KamalDeveloper11 KamalDeveloper11 commented Oct 5, 2025

Copy link
Copy Markdown

Replaced deprecated gradle -b option with gradle --build-file to fix CI warnings and future Gradle 9 compatibility.

Kmal Dallashe 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

Copy link
Copy Markdown
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:

  • Fixed deprecated --build-file option usage
  • Corrected YAML indentation issues
  • Used system gradle for bootstrap, wrapper for build

Could someone please approve the workflows so we can verify the fix works? The changes should resolve the CI failures.

Thanks!

Kmal Dallashe 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /