Use Project.ext as a fallback for property lookups#316
Conversation
|
marchermans
left a comment
There was a problem hiding this comment.
I think we can improve this a little bit.
|
This suggestion breaks project isolation, and current Gradle work seems to be moving heavily away from project properties and especially from Use of project properties in general is a bad idea. In addition to breaking project isolation in certain scenarios when loaded from subprojects (see: arch loom, for details), this whole scenario makes a bunch of logic now order-dependent that was entirely declarative before. If the goal is simply to be able to configure them per-project -- you should prefer having a |
What
I have made
WithPropertyLookupsource from a configuration-time snapshot valueof
Project.extas a fallback for property lookups, whenproviders.gradleProperty()has no value.Why
This change allows for programmatic configuration of NeoGradle conventions.
Such uses include:
build-logicconventions plugins may set the same set of conventions across all applied projects.