# IllegalStateException: Cannot add Mutate rule

**URL:** <https://discuss.gradle.org/t/illegalstateexception-cannot-add-mutate-rule/10541>\
**Category:** Bugs\
**Tags:** issue-acknowledged, gradle-3321\
**Created:** [July 10, 2015, 3:50pm UTC](https://discuss.gradle.org/t/illegalstateexception-cannot-add-mutate-rule/10541 "2015-07-10T15:50:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)\
**Post date:** [July 12, 2015, 6:13am UTC](https://discuss.gradle.org/t/illegalstateexception-cannot-add-mutate-rule/10541/5 "2015-07-12T06:13:45Z")

</div>

You’re not using the new rule based mechanism, but the LanguageBasePlugin does.  
It’s true that having an error in this internal plug-in, about something you’re not even using, is wrong. There is most likely a bug here.  
However, using the rule based mechanism to create your task (which is one of the well documented things one can do using the current state of the rule based mechanism) might integrate better with internal plugins that already use it, and might be a viable work around the problem.

For the rest, I let the experts intervene.

---

_[View the full topic](https://discuss.gradle.org/t/illegalstateexception-cannot-add-mutate-rule/10541)._
