Reputation: 4758
When I use pluginManagement
in my build.gradle.kts
, I get the error "Unresolved reference: pluginManagement". Every other feature that I am using works just fine. I also tried an otherwise empty build.gradle.kts
with only pluginManagement {}
at the top-level, but it still fails. The Gradle version is 6.6.1. Same issue for IDE (IntelliJ IDEA) and command line. I cannot find anything helpful. What could be wrong?
Upvotes: 2
Views: 2450
Reputation: 4758
I found the solution right after posting. From Gradle docs:
The
pluginManagement {}
block may only appear in either thesettings.gradle
file, where it must be the first block in the file, or in an Initialization Script.
Upvotes: 3