Resolution of the configuration :spring-security-kotlin-module:provided was attempted from a context different than the project context.
Have a look at the documentation to understand why this is a problem and how it can be resolved.
This behavior has been deprecated.
This will fail with an error in Gradle 9.0. For more information, please refer to https://docs.gradle.org/8.7/userguide/viewing_debugging_dependencies.html#sub:resolving-unsafe-configuration-resolution-errors in the Gradle documentation.