This message was deleted.
# dependency-management
s
This message was deleted.
k
the dependency is defined as:
Copy code
implementation("org.apache.tapestry:tapestry-core:${Versions.tapestry5}:jakarta")
p
Do you need to use an internal proxy?
o
Running with
--debug
should tell you the result of the HTTP request Gradle made to that location. I could double-check that log for you if you can't find it, but I imagine it would require significant redacting on your part.
k
no, I don't need to use any proxy, I m just on an VPN, and I have direct access to our private nexus
I ll try to provide some details from the log in a bit
This is what I get when I grep the output for the artifact name:
Copy code
kubapet@localhost ~/P/dossier-profile-gradle (improvement/PF-21178-fixing-critical-vulnerabilities)> ./gradlew installDist | grep -n -i "tapestry-core-5.8.3-jakarta.jar"
608027:2024-01-19T23:28:00.504+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Resolve tapestry-core-5.8.3-jakarta.jar (org.apache.tapestry:tapestry-core:5.8.3)' started
608048:2024-01-19T23:28:00.505+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Resolve tapestry-core-5.8.3-jakarta.jar (org.apache.tapestry:tapestry-core:5.8.3)'
608049:2024-01-19T23:28:00.505+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Resolve tapestry-core-5.8.3-jakarta.jar (org.apache.tapestry:tapestry-core:5.8.3)' completed
608342:2024-01-19T23:28:00.457+0100 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver] Loading file:/home/kubapet/.m2/repository/org/apache/tapestry/tapestry-core/5.8.3/tapestry-core-5.8.3-jakarta.jar
608698:2024-01-19T23:28:00.504+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of artifact 'tapestry-core-5.8.3-jakarta.jar (org.apache.tapestry:tapestry-core:5.8.3)' in resolver cache
This is while grepping only for `tapestry-core`:
Copy code
569728:2024-01-19T23:40:33.846+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] dependency: org.apache.tapestry:tapestry-core:5.8.3 to-conf: null is filtered.
570253:2024-01-19T23:40:33.851+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] dependency: org.apache.tapestry:tapestry-core:5.8.3 to-conf: null is filtered.
570778:2024-01-19T23:40:33.857+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] dependency: org.apache.tapestry:tapestry-core:5.8.3 to-conf: null is filtered.
571304:2024-01-19T23:40:33.862+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] dependency: org.apache.tapestry:tapestry-core:5.8.3 to-conf: null is filtered.
571829:2024-01-19T23:40:33.867+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] dependency: org.apache.tapestry:tapestry-core:5.8.3 to-conf: null is filtered.
572355:2024-01-19T23:40:33.873+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] dependency: org.apache.tapestry:tapestry-core:5.8.3 to-conf: null is filtered.
572880:2024-01-19T23:40:33.878+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] dependency: org.apache.tapestry:tapestry-core:5.8.3 to-conf: null is filtered.
573404:2024-01-19T23:40:33.883+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] dependency: org.apache.tapestry:tapestry-core:{strictly 5.8.3} to-conf: null is filtered.
574058:2024-01-19T23:40:33.896+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] dependency: org.apache.tapestry:tapestry-core:{strictly 5.8.3} to-conf: null is filtered.
609208:2024-01-19T23:40:35.695+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Resolve tapestry-core-5.8.3-jakarta.jar (org.apache.tapestry:tapestry-core:5.8.3)' started
609209:2024-01-19T23:40:35.695+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Resolve tapestry-core-5.8.3-jakarta.jar (org.apache.tapestry:tapestry-core:5.8.3)'
609210:2024-01-19T23:40:35.695+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Resolve tapestry-core-5.8.3-jakarta.jar (org.apache.tapestry:tapestry-core:5.8.3)' completed
609245:2024-01-19T23:40:35.698+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Resolve tapestry-core-5.8.3.jar (org.apache.tapestry:tapestry-core:5.8.3)' started
609253:2024-01-19T23:40:35.699+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Resolve tapestry-core-5.8.3.jar (org.apache.tapestry:tapestry-core:5.8.3)'
609254:2024-01-19T23:40:35.699+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Resolve tapestry-core-5.8.3.jar (org.apache.tapestry:tapestry-core:5.8.3)' completed
609308:2024-01-19T23:40:35.623+0100 [DEBUG] [com.palantir.gradle.versions.VersionsPropsPlugin] Configuring component: org.apache.tapestry:tapestry-core:5.8.3
609376:2024-01-19T23:40:35.630+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for org.apache.tapestry:tapestry-core:5.8.3 using repositories [MavenLocal, maven]
609377:2024-01-19T23:40:35.630+0100 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver] Loading file:/home/kubapet/.m2/repository/org/apache/tapestry/tapestry-core/5.8.3/tapestry-core-5.8.3.pom
609378:2024-01-19T23:40:35.630+0100 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver] Loading file:/home/kubapet/.m2/repository/org/apache/tapestry/tapestry-core/5.8.3/tapestry-core-5.8.3-jakarta.jar
609379:2024-01-19T23:40:35.630+0100 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver] No meta-data file or artifact found for module 'org.apache.tapestry:tapestry-core:5.8.3' in repository 'MavenLocal'.
609380:2024-01-19T23:40:35.631+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.modulecache.PersistentModuleMetadataCache] Recording absence of module descriptor in cache: org.apache.tapestry:tapestry-core:5.8.3 [changing = false]
609381:2024-01-19T23:40:35.631+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Using cached module metadata for module 'org.apache.tapestry:tapestry-core:5.8.3' in 'maven'
609382:2024-01-19T23:40:35.631+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using org.apache.tapestry:tapestry-core:5.8.3 from Maven repository 'maven'
609527:2024-01-19T23:40:35.646+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder] Visiting configuration org.apache.tapestry:tapestry-core:5.8.3(apiElements).
609639:2024-01-19T23:40:35.666+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder] Visiting configuration org.apache.tapestry:tapestry-core:5.8.3(apiElements).
609640:2024-01-19T23:40:35.666+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.NodeState] Changed edges for org.apache.tapestry:tapestry-core:5.8.3(apiElements) selects same versions as previous traversal. ignoring
609704:2024-01-19T23:40:35.672+0100 [DEBUG] [org.gradle.internal.component.model.LoggingAttributeMatchingExplanationBuilder] Selected match adhoc variant for org.apache.tapestry:tapestry-core:5.8.3 from candidates [adhoc variant for org.apache.tapestry:tapestry-core:5.8.3] for {org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=21, org.gradle.libraryelements=classes, org.gradle.usage=java-api, org.jetbrains.kotlin.platform.type=jvm}
609705:2024-01-19T23:40:35.673+0100 [DEBUG] [org.gradle.internal.component.model.LoggingAttributeMatchingExplanationBuilder] Selected match org.apache.tapestry:tapestry-core:5.8.3 variant apiElements from candidates [org.apache.tapestry:tapestry-core:5.8.3 variant apiElements] for {org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=21, org.gradle.libraryelements=classes, org.gradle.usage=java-api, org.jetbrains.kotlin.platform.type=jvm}
609754:2024-01-19T23:40:35.695+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of artifact 'tapestry-core-5.8.3-jakarta.jar (org.apache.tapestry:tapestry-core:5.8.3)' in resolver cache
609757:2024-01-19T23:40:35.698+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Found artifact 'org.gradle.internal.component.external.model.UrlBackedArtifactMetadata@60c0783' in resolver cache: /home/kubapet/.gradle/caches/modules-2/files-2.1/org.apache.tapestry/tapestry-core/5.8.3/d2c25255d05b5b0586ffdcbe2dc3aa89974a5584/tapestry-core-5.8.3.jar
o
That seems like it resolved to nothing at some point. Does it fix if you
--refresh-dependencies
?
k
It refreshed the dependencies successfully, but the subsequent run of
./gradlew installDist
still fails on the same error
o
Hmm, that's strange. You could try clearing
~/.gradle/caches
, but I'm not confident it would help. If it doesn't, I would recommend making a minimal reproducer if possible and opening an issue.
k
maybe I should just use different artifact name or different version, the qualifiers are probably broken
ok, maybe I will try that tomorrow if I have some more time.. isn't there something more I could look for in the logs?
the log is around 1M lines of code so I don't know what should I look for
o
Nothing I am aware of. For some reason the local cache of resolution results thinks the artifact isn't present, and that's sticking around even after it finds it with
--refresh-dependencies
. We don't log more details for what's in the cache AFAIK.
k
yeh, I see the artifact is really not there, I can try to put it there manually
the directory name is just the md5 of the artifact right?
ah, seems like it is the sha1
o
I don't think adding the artifact will help, as the resolution cache I'm talking about is it's own binary file that stores negative results as well. Gradle won't even bother looking on disk if this file reports it doesn't exist.
k
ah, ok that might explain something
I actually added this jar file into this specific artifact version on nexus only after I've alraedy fetched the default non-jakarta version
and when I spoke about deleting the cache, I actually deleted only the files cache not the entire ~/.gradle coz I have some custom config there
o
Right, but you should be able to safely delete
~/.gradle/caches
.
k
interestingly, adding the artifact manually helped 🙂
I mean the jar
into the 5.8.3/dfe9f85c912e97e29a5987b094a66da9ad4a6d31/ dir
o
I wonder if this is a bug in the artifact cache WRT classifiers
k
I think it was positively cached in that binary file cache so it didn't bother to re-fetch it just because of changing the qualifier
so my guess is the binary cache just stores the groupId + artufacId + version
no, I m just shooting into the dark, I don't actually know, because when I deleted the files, it downloaded them again but again only those without the -jakarta qualifier
deleting the ~/,gradle/cache and reruning installDist worked.. so I assume it was really just a problem of caching the content metadata of the origina version of the entire
org,apache.tapestry:tapestry-core:5.3.8
artifact.. the cached info didn't include the new file with
jakarta
qualifier so gradle probably thought "ok, already know about this artifact, but there is no such file with such a qualifier inside of it.." Anyway, thanks for help!
o
Nice, glad to help.