Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findProperty() violates isolated project constraints #872

Open
solrudev opened this issue Nov 20, 2024 · 1 comment
Open

findProperty() violates isolated project constraints #872

solrudev opened this issue Nov 20, 2024 · 1 comment
Labels

Comments

@solrudev
Copy link

When enabling isolated projects option for Gradle, project sync failure contains the following violation:

Project {project_name} cannot dynamically look up a property in the parent project :

Stack trace points to this line.

Possible replacement for findProperty() is providers.gradleProperty().

@gabrielittner
Copy link
Collaborator

Unfortunately gradleProperty and findProperty are not the same. gradleProperty will only return properties from the root project, user home or cli, while findProperty also returns properties from the project's gradle.properties. See gradle/gradle#23572 which is effectively a blocker. We rely on being able to read project properties for configuring module specific things like the name or artifact id.

That said some usages can probably be replaced already, so that projects that use the base plugin and don't call pomFromGradleProperties are compatible with isolated projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants