mockito / shipkit

Toolkit for shipping it used by Mockito library
http://shipkit.org
MIT License
158 stars 35 forks source link

Fail fast when plugin not applied to root project #671

Closed mockitoguy closed 6 years ago

mockitoguy commented 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.