Sterling Albury
03/14/2024, 2:54 AMfooBar
, and then I changed it to be all lower case, foobar
, and this caused the issues. Things seem to work fine locally so I was thinking the problem was from the caching, but I've tried to remove/clear/update the ci and gradle caching, but I'm not having any luck. The error is
* What went wrong:
Could not determine the dependencies of task ':example:jvmTest'.
> Could not resolve all task dependencies for configuration ':example:jvmTestRuntimeClasspath'.
> Could not resolve project :foobar.
Required by:
project :example
> No matching configuration of project :foobar was found. The consumer was configured to find a library for use during runtime, preferably optimized for standard JVMs, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
- None of the consumable configurations have attributes.
i still think it might have to do with the caching but I've set org.gradle.caching
and org.gradle.configuration-cache
to false, and I'm not using a build cache either. I will post the abbreviated stack trace in the thread. Can anyone give me some ideas of how I can fix this?Sterling Albury
03/14/2024, 2:54 AM* Exception is:
org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':example:jvmTest'.
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:68)
at org.gradle.execution.plan.TaskDependencyResolver.resolveDependenciesFor(TaskDependencyResolver.java:49)
at org.gradle.execution.plan.LocalTaskNode.getDependencies(LocalTaskNode.java:148)
at org.gradle.execution.plan.LocalTaskNode.resolveDependencies(LocalTaskNode.java:122)
...
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all task dependencies for configuration ':example:jvmTestRuntimeClasspath'.
at org.gradle.api.internal.artifacts.ResolveExceptionContextualizer.mapFailure(ResolveExceptionContextualizer.java:81)
at org.gradle.api.internal.artifacts.ResolveExceptionContextualizer.mapFailures(ResolveExceptionContextualizer.java:60)
...
at org.gradle.internal.graph.CachingDirectedGraphWalker.doSearch(CachingDirectedGraphWalker.java:121)
at org.gradle.internal.graph.CachingDirectedGraphWalker.findValues(CachingDirectedGraphWalker.java:73)
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:66)
... 143 more
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve project :foobar.
Required by:
project :example
Caused by: org.gradle.internal.component.NoMatchingGraphVariantsException: No matching configuration of project :foobar was found. The consumer was configured to find a library for use during runtime, preferably optimized for standard JVMs, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
- None of the consumable configurations have attributes.
at org.gradle.internal.component.ResolutionFailureHandler.noMatchingGraphVariantFailure(ResolutionFailureHandler.java:313)
at org.gradle.internal.component.model.GraphVariantSelector.selectDefaultConfiguration(GraphVariantSelector.java:155)
at org.gradle.internal.component.model.GraphVariantSelector.selectVariants(GraphVariantSelector.java:86)
...
at org.gradle.api.internal.artifacts.configurations.ResolutionBackedFileCollection.visitDependencies(ResolutionBackedFileCollection.java:57)
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext$TaskGraphImpl.getNodeValues(CachingTaskDependencyResolveContext.java:103)
at org.gradle.internal.graph.CachingDirectedGraphWalker$GraphWithEmptyEdges.getNodeValues(CachingDirectedGraphWalker.java:213)
at org.gradle.internal.graph.CachingDirectedGraphWalker.doSearch(CachingDirectedGraphWalker.java:121)
at org.gradle.internal.graph.CachingDirectedGraphWalker.findValues(CachingDirectedGraphWalker.java:73)
...
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
Vampire
03/14/2024, 7:53 AMSterling Albury
03/14/2024, 7:06 PMVampire
03/14/2024, 7:34 PMVampire
03/14/2024, 7:34 PMVampire
03/14/2024, 7:35 PMSterling Albury
03/14/2024, 7:49 PMVampire
03/14/2024, 7:50 PMgit ls-tree -r @
Sterling Albury
03/14/2024, 7:51 PMVampire
03/14/2024, 7:53 PMVampire
03/14/2024, 7:53 PMVampire
03/14/2024, 7:54 PMVampire
03/14/2024, 7:54 PMVampire
03/14/2024, 7:55 PMVampire
03/14/2024, 7:55 PMVampire
03/14/2024, 7:56 PMVampire
03/14/2024, 7:56 PMSterling Albury
03/14/2024, 7:57 PMVampire
03/14/2024, 7:59 PMSterling Albury
03/14/2024, 8:01 PM