'How to use your forked version of plugin in Gradle

I'm using gradle plugin as

plugins {
    id 'net.ltgt.errorprone' version '2.0.2' apply false
}

Now, I forked net.ltgt.errorprone on Github, did some changes in branch changes. How can I tell Gradle to use the fork instead of upstream?

I've found this 'Fork' git repository as dependency in gradle for dependencies, looking for something similar for plugins.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source