You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
The text was updated successfully, but these errors were encountered:
haliltprkk
changed the title
Kotlin 2.0 dependecyAggregate is not working
Kotlin 2.0 dependencyCheckAggregate is not working
Jul 19, 2024
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 ****
FAILURE: Build failed with an exception.
Execution failed for task ':dependencyCheckAggregate'.
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,
The text was updated successfully, but these errors were encountered: