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

Move Validation to afterEvaluate #86

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

handstandsam
Copy link
Collaborator

@handstandsam handstandsam commented Mar 13, 2023

This should finally fix #68. I've validated it fixes the issues found in an old commit of a non-public monolith that required workarounds to fix previously.

* Without adding this, there were cases when the `target.configurations` were not all available yet.
*/
private fun validateConfigurationAfterEvaluate(target: Project, extension: DependencyGuardPluginExtension) {
target.afterEvaluate {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afterEvaluate is required because with out it target.configurations.map { it.name } is not right in all projects.

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.

Configuration was not found on version 0.4.0
1 participant