# Apply plugin inside a plugin

**URL:** <https://discuss.gradle.org/t/apply-plugin-inside-a-plugin/31906>\
**Category:** Help/Discuss\
**Tags:** plugins\
**Created:** [May 27, 2019, 8:16pm UTC](https://discuss.gradle.org/t/apply-plugin-inside-a-plugin/31906 "2019-05-27T20:16:51Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Joffrey](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/joffrey/32/4246_2.png) [@Joffrey](https://discuss.gradle.org/u/Joffrey)\
**Post date:** [February 20, 2024, 8:06pm UTC](https://discuss.gradle.org/t/apply-plugin-inside-a-plugin/31906/21 "2024-02-20T20:06:32Z")

</div>

The user might not be directly controlling the version of the plugin, for instance it might be that enabling some features leads to some different choice of version. But I have to admit my case is unorthodox.

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [February 20, 2024, 8:10pm UTC](https://discuss.gradle.org/t/apply-plugin-inside-a-plugin/31906/22 "2024-02-20T20:10:53Z")

</div>

I see. If this is more like an A or B situation than a 1 out of 100 situation, it might maybe be feasible to release two variants of your plugin instead of having some feature switch.

[Previous page](https://discuss.gradle.org/t/apply-plugin-inside-a-plugin/31906.md?page=1)
