This message was deleted.
# community-support
s
This message was deleted.
a
cc @Martin
e
maybe that only affects configuration cache and not normal task caching?
t
At a minimum, it's a known issue that you shouldn't use
java.net.URL
as a key in a hashmap because it does name resolution: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/net/URL.html#equals(java.lang.Object) So use a
URI
instead.
e
yeah, and that's part of the reason behind the stupid
networkaddress.cache.ttl=-1
default on some JVMs - otherwise
URL
equality may change over time 😬
😬 1
m
I don't think configuration cache is enabled there. I'll dig
e
I mean, maybe the code I linked only fixes URL serialization for configuration cache
👍 1
m
The
URL
in question is nested in other objects, would that change anything?
Ah yea, if it's only for configuration cache then it doesn't help the case at hand
Looks like it's a general thing, opened https://github.com/gradle/gradle/issues/24979
👍 1