# Groovy-gradle-plugin not found error occurs with buildSrc plugin

**URL:** https://discuss.gradle.org/t/groovy-gradle-plugin-not-found-error-occurs-with-buildsrc-plugin/38972
**Category:** Help/Discuss
**Created:** [February 8, 2021, 7:50am UTC](https://discuss.gradle.org/t/groovy-gradle-plugin-not-found-error-occurs-with-buildsrc-plugin/38972 "2021-02-08T07:50:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wscp](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@wscp](https://discuss.gradle.org/u/wscp)
#### Post date: [February 8, 2021, 7:50am UTC](https://discuss.gradle.org/t/groovy-gradle-plugin-not-found-error-occurs-with-buildsrc-plugin/38972/1 "2021-02-08T07:50:59Z")

</div>

I have a gradle project I’m trying to add jacoco reporting with aggregation to and I can’t seem to make things work… When I try to add a `buildSrc` plugin to the repo with a build script containing

```groovy
plugins {
    id 'groovy-gradle-plugin'
}

```

the build consistantly fails, mentioning that `groovy-gradle-plugin` is not a core plugin. I can’t find any other instances of this with my searching, so I’m asking here.

It is a multimodule project with a root module and some sub modules. one of which will fail to compile due to an intentional error. I’ve attached a zip file with the project for anybody who wants to take a look.

I was following [this](https://docs.gradle.org/current/samples/sample_jvm_multi_project_with_code_coverage.html) guide for this. The only difference I see in this project from the sample provided is that the root module has its own java source and test files which are compiled.

I accidentally deleted the wrapper directory and I was unable to regenerate the wrapper because this error would always occur when I ran `gradle wrapper` as well.

What am i doing wrong?

[testGradle.zip](https://discuss.gradle.org/uploads/short-url/nVjeoenPydrUegrjXMbKkn3H8dr.zip) (32.5 KB)

---

<div class="post-metadata">

### Author: ![Chris\_Dore](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/chris_dore/32/7592_2.png) [@Chris\_Dore](https://discuss.gradle.org/u/Chris_Dore)
#### Post date: [February 9, 2021, 1:36am UTC](https://discuss.gradle.org/t/groovy-gradle-plugin-not-found-error-occurs-with-buildsrc-plugin/38972/2 "2021-02-09T01:36:13Z")

</div>

Looking in `testGradle.zip/buildSrc/.gradle` I see a `6.3` directory, suggesting you were using Gradle 6.3. Support for Groovy [precompiled script plugins](https://docs.gradle.org/current/userguide/custom_plugins.html#sec:precompiled_plugins) (the `groovy-gradle-plugin` plugin) was added in Gradle 6.4.
