Я успешно опубликовал артефакт в своем локальном репозитории m2 по адресу: .m2\repository\com\example\gradle-binary-plugin\1.0
Имя плагина — gradle-binary-plugin-1.0.jar
Теперь я пытаюсь импортировать плагин в свой проект. Для этого мой build.gradle выглядит следующим образом:
plugins {
id "com.example.gradle-binary-plugin" version "1.0"
}
Однако я получаю следующую ошибку:
* 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/)
Подробнее здесь: https://stackoverflow.com/questions/784 ... repository