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

"Cannot run Project.afterEvaluate" crash when Gretty applied to a Gradle sub-module via plugins block #454

Open
chris-hatton opened this issue May 23, 2021 · 1 comment

Comments

@chris-hatton
Copy link

When applying Gretty 3.0.4 via the plugins {} block only to a Gradle 7.0.2 project sub-module, the following error is thrown:

An exception occurred applying plugin request [id: 'org.gretty', version: '3.0.4']
> Failed to apply plugin 'org.gretty'.
   > Cannot run Project.afterEvaluate(Closure) when the project is already evaluated.
  • The same crash does not occur if the Gretty plugin is applied only to the root project.
  • The same crash does not occur if the Gretty plugin is applied to both the root project and sub-project.
  • The crash does occur if the Gretty plugin is applied to the root project with apply false and applied to the sub-project.

In brief; it looks like the Gretty plugin must be fully applied to the root project to work. This seems an unintended and unreasonable restriction.

@boris-petrov
Copy link

@chris-hatton - please try 3.0.5. It should work fine. Also, please open issues in the new repo. :)

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

No branches or pull requests

2 participants