There could be a situation (and it actually happened to me) when one uses plugin from one custom repository, and then switches to another repository, but doesn't change the plugin name. If artifacts are actually different, it may lead to problems: intellij-plugin caches artifacts by name only, and caches are not invalidated properly.
Related code: https://github.com/JetBrains/gradle-intellij-plugin/blob/9f7a1fbbc98e0c4edd4d4e148d2fb00918d46f45/src/main/groovy/org/jetbrains/intellij/dependency/CustomPluginsRepository.groovy#L57