Closed mockitoguy closed 6 years ago
Our core plugins
need to be applied to the root project.
This is not intuitive as evidenced by a problem reported at #655
Let's implement a short term solution and fail early and gracefully when the plugin is applied to a subproject rather than to a root project.
Example implementation we already use in a different plugin:
https://github.com/mockito/shipkit/blob/59aad490aa3fcd0955bd972ce939f44b8d2e72e4/subprojects/shipkit/src/main/groovy/org/shipkit/internal/gradle/git/GitOriginPlugin.java#L32-L37
Long term plan is to make the plugins work in a submodule, too.
Our core plugins
need to be applied to the root project.
This is not intuitive as evidenced by a problem reported at #655
Let's implement a short term solution and fail early and gracefully when the plugin is applied to a subproject rather than to a root project.
Example implementation we already use in a different plugin:
https://github.com/mockito/shipkit/blob/59aad490aa3fcd0955bd972ce939f44b8d2e72e4/subprojects/shipkit/src/main/groovy/org/shipkit/internal/gradle/git/GitOriginPlugin.java#L32-L37
Long term plan is to make the plugins work in a submodule, too.