Repository navigation
docs(plugins): call hasProperty() on rootProject in the 9.0 plugin guide - #642
Merged
Merged
Conversation
Gradle 9 deprecates project.hasProperty() finding a property that is only declared on the root project, and Gradle 10 will turn it into an error. Add a section with the change and use the rootProject form in the existing build.gradle snippets.
andredestro
requested review from
ItsChaceD,
OS-pedrogustavobilro,
alexgerardojacinto,
jcesarmobile,
markemer and
theproducer
November 19, 2026 17:32
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
alexgerardojacinto
approved these changes
Nov 19, 2026
This branch was successfully deployed
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.
Description
Adds a "Call
hasProperty()onrootProject" section to the plugin upgrade guide (updating/plugins/9-0.md).On Gradle 9.8, a plugin's
project.hasProperty('x') ? rootProject.ext.x : defaultlookups only findxby falling back to the app's root project. Gradle deprecated that ("Implicit lookup of properties in parent projects ... will fail with an error in Gradle 10"), so apps get a warning per variable for every plugin that still uses that form. The section shows the warning and the one-word change.The existing snippets in the guide (plugin variables,
compileSdk/minSdkVersion,kotlin_version) now use therootProjectform, so they match a file where this step is already done and still show only the version changes.The same change is in Capacitor, the official plugins, the plugin template and the migration tool: ionic-team/capacitor#8731, ionic-team/capacitor-plugins#2640, ionic-team/create-capacitor-plugin#157, ionic-team/migrate-capacitor-plugin#51.
Change Type
Rationale / Problems Fixed
https://outsystemsrd.atlassian.net/browse/RMET-5591
https://docs.gradle.org/9.8.2/userguide/upgrading_version_9.html#deprecated_implicit_lookup_in_parent_projects
Notes / Comments
prettier --checkalready reports this file onmain, so I left the formatting as it was.