Skip to content

Fix gradle upgrade warnings#115

Merged
bobbylight merged 1 commit intomasterfrom
fix-gradle-10-upgrade-warnings-jan-2026
Jan 10, 2026
Merged

Fix gradle upgrade warnings#115
bobbylight merged 1 commit intomasterfrom
fix-gradle-10-upgrade-warnings-jan-2026

Conversation

@bobbylight
Copy link
Owner

@bobbylight bobbylight commented Jan 10, 2026

Fix warnings received when running with --warning-mode all:

Build file 'D:\dev\rjava\RText\build.gradle': line 414
Invocation of Task.project at execution time has been deprecated. This will fail with an error in Gradle 10. This API is incompatible with the configuration cache, which will become the only mode supported by Gradle in a future release. Consult the upgrading guide for further information: https://docs.gradle.org/9.2.1/userguide/upgrading_version_7.html#task_project
        at build_5vhwvpuz9454e36o9ln910dqe$_run_closure30$_closure85.doCall$original(D:\dev\rjava\RText\build.gradle:414)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file 'D:\dev\rjava\RText\build.gradle': line 415
Invocation of Task.project at execution time has been deprecated. This will fail with an error in Gradle 10. This API is incompatible with the configuration cache, which will become the only mode supported by Gradle in a future release. Consult the upgrading guide for further information: https://docs.gradle.org/9.2.1/userguide/upgrading_version_7.html#task_project
        at build_5vhwvpuz9454e36o9ln910dqe$_run_closure30$_closure85.doCall$original(D:\dev\rjava\RText\build.gradle:415)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

The fix is to move the project.findProperty() calls to outside of the doLast block.

@bobbylight bobbylight self-assigned this Jan 10, 2026
@bobbylight bobbylight added this to the 6.1.0 milestone Jan 10, 2026
@bobbylight bobbylight merged commit 0d5be2b into master Jan 10, 2026
3 checks passed
@bobbylight bobbylight deleted the fix-gradle-10-upgrade-warnings-jan-2026 branch January 10, 2026 17:29
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