-
Notifications
You must be signed in to change notification settings - Fork 103
Description
Recently, we updated our Kotlin version from 1.9.10 to 2.0, after this change dependencyCheck stopped working.
Both the 9.0.10 and 10.0.3 versions plugin gives the error as follows,
`> Task :dependencyCheckAggregate
Verifying dependencies for project ****
Task :dependencyCheckAggregate FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':dependencyCheckAggregate'.
Cannot change dependencies of dependency configuration '*****CompileClasspath' after it has been included in dependency resolution. Use 'defaultDependencies' instead of 'beforeResolve' to specify default dependencies for a configuration.
- Try:
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
-
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':dependencyCheckAggregate'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:140)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:128)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at
.
.
.
.`When I downgrade the Kotlin version to 1.9.10 there is no problem.
Thanks in advance,