Не удалось найти класс реализации «CommonPluginClass» для плагина «common-plugin», указанного в jar:file
org.gradle.api.plugins.InvalidPluginException: произошло исключение при запросе плагина [id: 'common-plugin']

это мой CommonPluginClass:
Код: Выделить всё
class CommonPluginClass: Plugin
{
override fun apply(project: Project) {
project.task("hello") {
doLast {
println ("Hello from the CommonPluginClass")
}
}
}
}
Код: Выделить всё
plugins {
id 'groovy-gradle-plugin'
}
gradlePlugin {
plugins {
commonPlugin {
id = "common-plugin"
implementationClass = "CommonPluginClass"
}
}
}
Код: Выделить всё
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
}
rootProject.name = "build-logic"
include(":convention")
Код: Выделить всё
plugins { id 'common-plugin' } - Что пошло не так:
Произошло исключение при применении запроса плагина [id: 'common-plugin']
Не удалось найти класс реализации «CommonPluginClass.kt» для плагина «common-plugin», указанного в jar:file:/C:/Users/User/.gradle/caches/ jars-9/******/convention.jar!/META-INF/gradle-plugins/common-plugin.properties.
Я хотел бы сохранить это дерево, что я делаю не так?
Подробнее здесь: https://stackoverflow.com/questions/743 ... ass-plugin
Мобильная версия