Skip to content

Conversation

KamalDeveloper11
Copy link

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
@KamalDeveloper11
Copy link
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant