Our Windows CI build is failing on windows due to a resolution error. It's not clear why it fails, or why it happens only on Windows. The following log output shows the problem:
2022-01-19T12:50:55.457-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute checkForProhibitedDependencies for :checkTestCompileClasspathForProhibitedDependencies' completed
2022-01-19T12:50:55.457-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Executing task ':checkTestCompileClasspathForProhibitedDependencies'' completed
2022-01-19T12:50:55.457-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Snapshot outputs after executing task ':checkTestCompileClasspathForProhibitedDependencies'' completed
2022-01-19T12:50:55.458-0800 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Removed task artifact state for task ':checkTestCompileClasspathForProhibitedDependencies' from context.
2022-01-19T12:50:55.458-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Task :checkTestCompileClasspathForProhibitedDependencies'
2022-01-19T12:50:55.458-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Task :checkTestCompileClasspathForProhibitedDependencies' completed
2022-01-19T12:50:55.458-0800 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :checkTestCompileClasspathForProhibitedDependencies (Thread[Daemon worker,5,main]) completed. Took 0.018 secs.
2022-01-19T12:50:55.458-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :checkTestCompileClasspathForProhibitedDependencies finished executing
2022-01-19T12:50:55.458-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :checkTestCompileClasspathForProhibitedDependencies completed, executed: true
2022-01-19T12:50:55.458-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :check
2022-01-19T12:50:55.458-0800 [DEBUG] [org.gradle.execution.plan.Node] Dependency :checkTestRuntimeClasspathForProhibitedDependencies for :check not yet completed
2022-01-19T12:50:55.458-0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: released lock on :
2022-01-19T12:50:55.458-0800 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.3 completed (1 worker(s) in use)
2022-01-19T12:50:55.459-0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: released lock on root.1.3
2022-01-19T12:50:55.459-0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: acquired lock on :
2022-01-19T12:50:55.459-0800 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.3 started (1 worker(s) in use).
2022-01-19T12:50:55.459-0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: acquired lock on root.1.3
2022-01-19T12:50:55.459-0800 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :checkTestRuntimeClasspathForProhibitedDependencies (Thread[Daemon worker,5,main]) started.
2022-01-19T12:50:55.459-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Task :checkTestRuntimeClasspathForProhibitedDependencies' started
2022-01-19T12:50:55.459-0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 138: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultTaskFinishedProgressEvent@1b22bcf5]
2022-01-19T12:50:55.460-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Snapshot inputs and outputs before executing task ':checkTestRuntimeClasspathForProhibitedDependencies'' started
2022-01-19T12:50:55.460-0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 138: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultTaskStartedProgressEvent@2fa64cf0]
2022-01-19T12:50:55.460-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Resolve dependencies of :testRuntimeClasspath' started
2022-01-19T12:50:55.494-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Download https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom' started
2022-01-19T12:50:55.881-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Download https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom'
2022-01-19T12:50:55.890-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Resolve dependencies of :testRuntimeClasspath'
2022-01-19T12:50:55.891-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Snapshot inputs and outputs before executing task ':checkTestRuntimeClasspathForProhibitedDependencies''
2022-01-19T12:50:55.459-0800 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger]
2022-01-19T12:50:55.459-0800 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :checkTestRuntimeClasspathForProhibitedDependencies FAILED
2022-01-19T12:50:55.459-0800 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Putting task artifact state for task ':checkTestRuntimeClasspathForProhibitedDependencies' into context took 0.0 secs.
2022-01-19T12:50:55.460-0800 [DEBUG] [org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep] Implementation for task ':checkTestRuntimeClasspathForProhibitedDependencies': org.springframework.boot.build.classpath.CheckClasspathForProhibitedDependencies_Decorated@9480f2ff309f787a3dc211bbd75f98bb
2022-01-19T12:50:55.460-0800 [DEBUG] [org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep] Additional implementations for task ':checkTestRuntimeClasspathForProhibitedDependencies': [org.springframework.boot.build.classpath.CheckClasspathForProhibitedDependencies_Decorated@9480f2ff309f787a3dc211bbd75f98bb]
2022-01-19T12:50:55.461-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultArtifactDependencyResolver] Resolving configuration ':testRuntimeClasspath'
2022-01-19T12:50:55.462-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.modulecache.ResolvedArtifactCaches] Reusing in-memory cache for repo 'MavenRepo' [a8be1fe3b3911d3d3425fe720cf42835].
2022-01-19T12:50:55.463-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder] Visiting configuration :junit6490462484198680430:1.2.3(testRuntimeClasspath).
2022-01-19T12:50:55.463-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for org.junit:junit-bom:5.6.0 using repositories [MavenRepo]
2022-01-19T12:50:55.463-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Using cached module metadata for module 'org.junit:junit-bom:5.6.0' in 'MavenRepo'
2022-01-19T12:50:55.463-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using org.junit:junit-bom:5.6.0 from Maven repository 'MavenRepo'
2022-01-19T12:50:55.470-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for org.junit.platform:junit-platform-launcher: using repositories [MavenRepo]
2022-01-19T12:50:55.470-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of module 'org.junit.platform:junit-platform-launcher:' in resolver cache 'MavenRepo'
2022-01-19T12:50:55.474-0800 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver] No meta-data file or artifact found for module 'org.junit.platform:junit-platform-launcher:' in repository 'MavenRepo'.
2022-01-19T12:50:55.475-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.modulecache.PersistentModuleMetadataCache] Recording absence of module descriptor in cache: org.junit.platform:junit-platform-launcher: [changing = false]
2022-01-19T12:50:55.479-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder] Visiting configuration org.junit:junit-bom:5.6.0(runtimeElements).
2022-01-19T12:50:55.483-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for org.junit.platform:junit-platform-launcher:1.6.0 using repositories [MavenRepo]
2022-01-19T12:50:55.486-0800 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver] Loading https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom
2022-01-19T12:50:55.488-0800 [DEBUG] [org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResourceAccessor] Constructing external resource: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom
2022-01-19T12:50:55.488-0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Creating new cache for metadata-2.97/resource-at-url, path C:\Users\Lab\AppData\Local\Temp\.gradle-test-kit-Lab\caches\modules-2\metadata-2.97\resource-at-url.bin, access org.gradle.cache.internal.DefaultCacheAccess@fd8f811
2022-01-19T12:50:55.488-0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache resource-at-url.bin (C:\Users\Lab\AppData\Local\Temp\.gradle-test-kit-Lab\caches\modules-2\metadata-2.97\resource-at-url.bin)
2022-01-19T12:50:55.495-0800 [DEBUG] [org.gradle.internal.resource.transport.http.HttpResourceAccessor] Constructing external resource: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom
2022-01-19T12:50:55.503-0800 [DEBUG] [org.gradle.internal.resource.transport.http.HttpClientHelper] Performing HTTP GET: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom
2022-01-19T12:50:55.830-0800 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: default
2022-01-19T12:50:55.849-0800 [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] Auth cache not set in the context
2022-01-19T12:50:55.851-0800 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection request: [route: {s}->https://repo.maven.apache.org:443][total available: 0; route allocated: 0 of 20; total allocated: 0 of 20]
2022-01-19T12:50:55.876-0800 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection leased: [id: 0][route: {s}->https://repo.maven.apache.org:443][total available: 0; route allocated: 1 of 20; total allocated: 1 of 20]
2022-01-19T12:50:55.878-0800 [DEBUG] [org.apache.http.impl.execchain.MainClientExec] Opening connection {s}->https://repo.maven.apache.org:443
2022-01-19T12:50:55.880-0800 [DEBUG] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] http-outgoing-0: Shutdown connection
2022-01-19T12:50:55.880-0800 [DEBUG] [org.apache.http.impl.execchain.MainClientExec] Connection discarded
2022-01-19T12:50:55.880-0800 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection released: [id: 0][route: {s}->https://repo.maven.apache.org:443][total available: 0; route allocated: 0 of 20; total allocated: 0 of 20]
2022-01-19T12:50:55.881-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Download https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom' completed
2022-01-19T12:50:55.884-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder] Visiting configuration junit6490462484198680430.spring-boot-project:spring-boot-parent:unspecified(enforcedRuntimeElements).
2022-01-19T12:50:55.887-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsBuilder] Flushing resolved configuration data in Binary store in C:\Users\Lab\AppData\Local\Temp\gradle7167458172448167370.bin. Wrote root 2.
2022-01-19T12:50:55.890-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Resolve dependencies of :testRuntimeClasspath' completed
2022-01-19T12:50:55.890-0800 [DEBUG] [org.gradle.internal.component.model.LoggingAttributeMatchingExplanationBuilder] Selected match configuration ':spring-boot-project:spring-boot-parent:enforcedRuntimeElements' from candidates [configuration ':spring-boot-project:spring-boot-parent:enforcedRuntimeElements'] for {org.gradle.category=enforced-platform, org.gradle.dependency.bundling=external, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}
2022-01-19T12:50:55.891-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Snapshot inputs and outputs before executing task ':checkTestRuntimeClasspathForProhibitedDependencies'' completed
2022-01-19T12:50:55.891-0800 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Removed task artifact state for task ':checkTestRuntimeClasspathForProhibitedDependencies' from context.
2022-01-19T12:50:55.904-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Task :checkTestRuntimeClasspathForProhibitedDependencies'
2022-01-19T12:50:55.904-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Task :checkTestRuntimeClasspathForProhibitedDependencies' completed
2022-01-19T12:50:55.904-0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 138: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultTaskFinishedProgressEvent@669bcd9]
2022-01-19T12:50:55.904-0800 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :checkTestRuntimeClasspathForProhibitedDependencies (Thread[Daemon worker,5,main]) completed. Took 0.445 secs.
2022-01-19T12:50:55.905-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :checkTestRuntimeClasspathForProhibitedDependencies failed
2022-01-19T12:50:55.905-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :checkstyleMain completed, executed: false
2022-01-19T12:50:55.905-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :test
2022-01-19T12:50:55.905-0800 [DEBUG] [org.gradle.execution.plan.Node] Dependency :testClasses for :test not yet completed
2022-01-19T12:50:55.905-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :check
2022-01-19T12:50:55.905-0800 [DEBUG] [org.gradle.execution.plan.Node] Dependency :checkTestRuntimeClasspathForProhibitedDependencies for :check not yet completed
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :compileTestJava completed, executed: false
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :testClasses
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.Node] Dependency :processTestResources for :testClasses not yet completed
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :processTestResources completed, executed: false
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :testClasses
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :testClasses
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :testClasses
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :testClasses
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :testClasses
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :testClasses completed, executed: false
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :checkstyleTest
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :checkstyleTest
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :checkstyleTest
2022-01-19T12:50:55.906-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :checkstyleTest
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :checkstyleTest
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :test
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :test
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :test
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :checkstyleTest completed, executed: false
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :test
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :test
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :test
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :test
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :test
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :check
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.Node] Dependency :checkTestRuntimeClasspathForProhibitedDependencies for :check not yet completed
2022-01-19T12:50:55.907-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :test completed, executed: false
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :check
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.Node] Dependency :checkTestRuntimeClasspathForProhibitedDependencies for :check not yet completed
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :check completed, executed: false
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :build
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :build
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :build
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :build
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :build
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :build completed, executed: false
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :spring-boot-project:spring-boot-parent:assemble completed, executed: false
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :spring-boot-project:spring-boot-parent:build
2022-01-19T12:50:55.908-0800 [DEBUG] [org.gradle.execution.plan.Node] Dependency :spring-boot-project:spring-boot-parent:check for :spring-boot-project:spring-boot-parent:build not yet completed
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :spring-boot-project:spring-boot-parent:check completed, executed: false
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :spring-boot-project:spring-boot-parent:build
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :spring-boot-project:spring-boot-parent:build
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :spring-boot-project:spring-boot-parent:build
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :spring-boot-project:spring-boot-parent:build
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :spring-boot-project:spring-boot-parent:build
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :spring-boot-project:spring-boot-parent:build completed, executed: false
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :checkTestRuntimeClasspathForProhibitedDependencies completed, executed: true
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :check
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :check
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :check
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :check
2022-01-19T12:50:55.909-0800 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :check
2022-01-19T12:50:55.910-0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: released lock on :
2022-01-19T12:50:55.910-0800 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.3 completed (1 worker(s) in use)
2022-01-19T12:50:55.910-0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: released lock on root.1.3
2022-01-19T12:50:55.910-0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Daemon worker,5,main]] finished, busy: 0.463 secs, idle: 0.592 secs
2022-01-19T12:50:55.911-0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 2,5,main]] finished, busy: 0.0 secs, idle: 1.056 secs
2022-01-19T12:50:55.912-0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 3,5,main]] finished, busy: 0.209 secs, idle: 0.847 secs
2022-01-19T12:50:55.914-0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':',5,main]] finished, busy: 0.319 secs, idle: 0.741 secs
2022-01-19T12:50:55.921-0800 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskExecutionGraph] Timing: Executing the DAG took 1.068 secs
2022-01-19T12:50:55.950-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run tasks'
2022-01-19T12:50:55.951-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run tasks' completed
2022-01-19T12:50:55.957-0800 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)
2022-01-19T12:50:55.957-0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: released lock on root.1
2022-01-19T12:50:55.962-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-01-19T12:50:55.962-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2022-01-19T12:50:55.963-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-01-19T12:50:55.963-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2022-01-19T12:50:55.963-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':checkTestRuntimeClasspathForProhibitedDependencies'.
2022-01-19T12:50:55.963-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve all files for configuration ':testRuntimeClasspath'.
2022-01-19T12:50:55.963-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.junit.platform:junit-platform-launcher:1.6.0.
2022-01-19T12:50:55.963-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2022-01-19T12:50:55.963-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :
2022-01-19T12:50:55.963-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.junit.platform:junit-platform-launcher:1.6.0.
2022-01-19T12:50:55.963-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom'.
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not GET 'https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom'.
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > repo.maven.apache.org
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.junit.platform:junit-platform-launcher:1.6.0.
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project : > org.junit:junit-bom:5.6.0
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.junit.platform:junit-platform-launcher:1.6.0.
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom'.
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not GET 'https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom'.
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > repo.maven.apache.org
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
2022-01-19T12:50:55.964-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights.
2022-01-19T12:50:55.965-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-01-19T12:50:55.965-0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
2022-01-19T12:50:55.965-0800 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
2022-01-19T12:50:55.965-0800 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 2s
2022-01-19T12:50:55.966-0800 [LIFECYCLE] [org.gradle.internal.buildevents.TaskExecutionStatisticsReporter] 8 actionable tasks: 8 executed
2022-01-19T12:50:55.966-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build finished for file system watching' started
2022-01-19T12:50:55.966-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Build finished for file system watching'
2022-01-19T12:50:55.966-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build finished for file system watching' completed
2022-01-19T12:50:55.966-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run build'
2022-01-19T12:50:55.966-0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run build' completed
2022-01-19T12:50:56.023-0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-supplier (C:\Users\Lab\AppData\Local\Temp\.gradle-test-kit-Lab\caches\6.9.2\md-supplier)
2022-01-19T12:50:56.024-0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-supplier (C:\Users\Lab\AppData\Local\Temp\.gradle-test-kit-Lab\caches\6.9.2\md-supplier).
2022-01-19T12:50:56.026-0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\buildOutputCleanup)
2022-01-19T12:50:56.027-0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache outputFiles.bin (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\buildOutputCleanup\outputFiles.bin)
2022-01-19T12:50:56.028-0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\buildOutputCleanup).
2022-01-19T12:50:56.028-0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for execution history cache (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\6.9.2\executionHistory)
2022-01-19T12:50:56.029-0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache executionHistory.bin (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\6.9.2\executionHistory\executionHistory.bin)
2022-01-19T12:50:56.029-0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on execution history cache (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\6.9.2\executionHistory).
2022-01-19T12:50:56.032-0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-rule (C:\Users\Lab\AppData\Local\Temp\.gradle-test-kit-Lab\caches\6.9.2\md-rule)
2022-01-19T12:50:56.032-0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-rule (C:\Users\Lab\AppData\Local\Temp\.gradle-test-kit-Lab\caches\6.9.2\md-rule).
2022-01-19T12:50:56.033-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
2022-01-19T12:50:56.035-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
2022-01-19T12:50:56.036-0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 4 resolution results binary files in 0.003 secs
2022-01-19T12:50:56.037-0800 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles
2022-01-19T12:50:56.038-0800 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles
2022-01-19T12:50:56.038-0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for checksums cache (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\checksums)
2022-01-19T12:50:56.038-0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on checksums cache (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\checksums).
2022-01-19T12:50:56.039-0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS Checkout Cache (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\vcs-1) was closed 0 times.
2022-01-19T12:50:56.040-0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\6.9.2\fileHashes)
2022-01-19T12:50:56.040-0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileHashes.bin (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\6.9.2\fileHashes\fileHashes.bin)
2022-01-19T12:50:56.041-0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\6.9.2\fileHashes).
2022-01-19T12:50:56.041-0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS metadata (C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle\6.9.2\vcsMetadata-1) was closed 0 times.
2022-01-19T12:50:56.043-0800 [DEBUG] [org.gradle.cache.internal.VersionSpecificCacheCleanupAction] Processed version-specific caches at C:\Users\Lab\AppData\Local\Temp\junit6490462484198680430\.gradle for cleanup in 0.001 secs
2022-01-19T12:50:56.051-0800 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
Adding log output to the checkForProhibitedDependencies
method shows it's not even called. Oddly the error only happens with the testRuntimeClasspath
. The testCompileClasspath
works fine.
Comment From: wilkinsona
Adding log output to the checkForProhibitedDependencies method shows it's not even called
The method hasn't been called as the failure occurs while Gradle's preparing the task's inputs. Specifically, it's resolving the Configuration
that's used as the task's classpath
input. Only once this resolution has succeeded are things in the state that's required to call checkForProhibitedDependencies
.
Oddly the error only happens with the
testRuntimeClasspath
. ThetestCompileClasspath
works fine.
I believe this is because there aren't any non-platform dependencies in testCompileClasspath
so there's nothing to resolve. testRuntimeClasspath
has got org.junit.platform:junit-platform-launcher
in it. The presence of that dependency means that there's some resolution to be done.