-
Notifications
You must be signed in to change notification settings - Fork 30
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
Access to Project from Rules #23
Comments
@melix If I work on this and send you a PR would you integrate it? Is this something you are interested in continuing to support? |
I don't think it's a good idea to share the state of the Instead, the pattern is to use class based actions and a configuration block that is the only one accessing the project state at some point in time, and pass the limited set of things it needs to the rule. |
Ultimately, from my rules, I need access to my custom extension or a graph exposed from my extension. I had thought allowing access to the Project would be a nice generic solution. If you don't like that particular approach, that's fine. Another option is to allow passing something other than
or at the very least (though definitely not as nice):
Would you be on board with either of those? If you don't like this second approach either, then what is your alternative approach? I need some form of a solution to this, so I'll either do the work here or fork this plugin and do it there Well at the very least I need access to a custom Gradle extension object in my rules. |
I've run across a few cases already where access to the Project from Rules would be very nice.
The text was updated successfully, but these errors were encountered: