gradle multi-project build the plugin was not found

It looks to me like you found a problem with the documentation.

The file called buildSrc/src/main/groovy/myproject.java-conventions.gradle declares what is called a precompiled script plugin. For this to work, you have to apply the plugin called groovy-gradle-plugin (for Groovy plugins) in the buildSrc project:

# buildSrc/build.gradle
plugins {
    id 'groovy-gradle-plugin'
}

After this, it should be able to find your custom myproject.java-conventions plugin. If so, you could create an issue on the Gradle issue tracker to suggest that they add the above snippet to the samples in the documentation for project dependencies.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top