I have successfully published the artifact into my local m2 repository at location: .m2repositorycomexamplegradle-binary-plugin1.0
The name of the plugin is gradle-binary-plugin-1.0.jar
Now, I am trying to import the plugin in my project. For that my build.gradle
looks as below:
plugins {
id "com.example.gradle-binary-plugin" version "1.0"
}
However, I am getting below error:
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.example.gradle-binary-plugin', version: '1.0'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.example.gradle-binary-plugin:com.example.gradle-binary-plugin.gradle.plugin:1.0')
Searched in the following repositories:
MavenLocal(file:/C:/Users/abc%20Gupta/.m2/repository/)