# Invalid plugin ID 'plugin-name': multiple plugins are using the same ID

**URL:** <https://discuss.gradle.org/t/invalid-plugin-id-plugin-name-multiple-plugins-are-using-the-same-id/28545>\
**Category:** Plugin Portal\
**Created:** [September 10, 2018, 2:26am UTC](https://discuss.gradle.org/t/invalid-plugin-id-plugin-name-multiple-plugins-are-using-the-same-id/28545 "2018-09-10T02:26:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stewartbryson](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/stewartbryson/32/9981_2.png) [@stewartbryson](https://discuss.gradle.org/u/stewartbryson)\
**Post date:** [September 10, 2018, 2:26am UTC](https://discuss.gradle.org/t/invalid-plugin-id-plugin-name-multiple-plugins-are-using-the-same-id/28545/1 "2018-09-10T02:26:37Z")

</div>

I modified my build script a good bit to simplify it. One of the things I introduced is using `java-gradle-plugin` for the first time. I also deleted the resources file that mentions the implementation class as it’s no longer needed.

Everything built successfully. However, when I went to publish for the first time, I get this error:

Invalid plugin ID ‘’: multiple plugins are using the same ID

I’m happy to include the details of my actual plugin, but I thought I would start at a high level first. I’d like to get an understanding of what could cause this. The plugin I’m publishing to is _my_ plugin, and I’m using the same `gradle.publish` keys I’ve always used.

What could cause this?

Thanks.

---

<div class="post-metadata">

**Author:** ![eriwen](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/eriwen/32/4786_2.png) [@eriwen](https://discuss.gradle.org/u/eriwen)\
**Post date:** [September 10, 2018, 6:16pm UTC](https://discuss.gradle.org/t/invalid-plugin-id-plugin-name-multiple-plugins-are-using-the-same-id/28545/2 "2018-09-10T18:16:13Z")

</div>

Hi Stewart,

It’s likely that when you adopted the `java-gradle-plugin` along with `plugin-publish` v 0.10+, a different group name (without “gradle.plugins” prefix) but same plugin ID was used. [Some documentation](https://plugins.gradle.org/docs/publish-plugin).

I noticed I got a plugin approval from Red Pill (you, right?) which I approved. Is that the plugin you’re referring to? Do you have other information that you think needs more investigation?

/cc @marcphilipp who may have better knowledge.

Cheers,  
Eric

---

<div class="post-metadata">

**Author:** ![stewartbryson](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/stewartbryson/32/9981_2.png) [@stewartbryson](https://discuss.gradle.org/u/stewartbryson)\
**Post date:** [September 10, 2018, 6:38pm UTC](https://discuss.gradle.org/t/invalid-plugin-id-plugin-name-multiple-plugins-are-using-the-same-id/28545/3 "2018-09-10T18:38:08Z")

</div>

That was it. Adding the resources file back spawned a new request. Since approval, all is now working without the resources file. Thank you!

---

<div class="post-metadata">

**Author:** ![eriwen](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/eriwen/32/4786_2.png) [@eriwen](https://discuss.gradle.org/u/eriwen)\
**Post date:** [September 10, 2018, 7:05pm UTC](https://discuss.gradle.org/t/invalid-plugin-id-plugin-name-multiple-plugins-are-using-the-same-id/28545/4 "2018-09-10T19:05:37Z")

</div>

Excellent. You’re welcome 🙂
