Environment:
-
IntelliJ IDEA (latest)
-
Gradle 9.0.0
-
Kotlin 2.2.20
-
Multi-module project with
kotlin("jvm")andsoftware.amazon.smithy.gradle.smithy-base
Problem:
When running IntelliJ’s dependency analyzer tool on the :QuriModels submodule, the build fails with:
Could not create task ':QuriModels:ijCollectDependencies'.
> Resolution of the configuration ':QuriModels:annotationProcessor'
was attempted without an exclusive lock. This is unsafe and not allowed.
The error originates from an IntelliJ-injected initialization script at ijmiscinit1.gradle line 26, not from my own build scripts. Running ./gradlew :QuriModels:dependencies from the terminal works fine.
Question:
Is this a known incompatibility between IntelliJ’s ijCollectDependencies task and Gradle 9’s stricter configuration resolution locking? Is there a workaround short of downgrading Gradle?