# 'compile' confguration not found

**URL:** <https://discuss.gradle.org/t/compile-confguration-not-found/42886>\
**Category:** Help/Discuss\
**Created:** [May 10, 2022, 3:12pm UTC](https://discuss.gradle.org/t/compile-confguration-not-found/42886 "2022-05-10T15:12:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![effarig](https://avatars.discourse-cdn.com/v4/letter/e/aeb1de/32.png) [@effarig](https://discuss.gradle.org/u/effarig)\
**Post date:** [May 10, 2022, 3:12pm UTC](https://discuss.gradle.org/t/compile-confguration-not-found/42886/1 "2022-05-10T15:12:26Z")

</div>

I was getting a project built with latest Gradle (7.4.2) but get this error:

`> Configuration with name 'compile' not found.`

The project builds fine with Gradle 6.6.1.

Having done some searching, I learn that this due to having ‘compile’ configuration been deprecated and removed. Oddly, there are no references to ‘compile’ in any of the project’s grade files.

The message doesn’t tell me where exactly the ‘compile’ reference come from, even when I specify the debug and trace options. Could this be due to a transitive dependency; if so, how do I find out and what I can I do about it?

Thoughts?

---

<div class="post-metadata">

**Author:** ![jjustinic](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/jjustinic/32/9005_2.png) [@jjustinic](https://discuss.gradle.org/u/jjustinic)\
**Post date:** [May 10, 2022, 3:38pm UTC](https://discuss.gradle.org/t/compile-confguration-not-found/42886/2 "2022-05-10T15:38:31Z")

</div>

That isn’t the expected error message for a dependency that is incorrectly added to the removed `compile` configuration. You likely have a plugin that is still trying to do something with the `compile` configuration by calling `configurations.getByName('compile')`. You need to use the stacktrace option to see where it is being called from, not debug or trace logging.

---

<div class="post-metadata">

**Author:** ![effarig](https://avatars.discourse-cdn.com/v4/letter/e/aeb1de/32.png) [@effarig](https://discuss.gradle.org/u/effarig)\
**Post date:** [May 11, 2022, 12:31pm UTC](https://discuss.gradle.org/t/compile-confguration-not-found/42886/3 "2022-05-11T12:31:36Z")

</div>

Thanks for the pointer. It was the Google protobuf plugin; the problem appears to be sorted once I updated it to its latest version.
