Why is my task failing with `Cannot fingerprint in...
# community-support
s
Why is my task failing with
Cannot fingerprint input property 'classpaths.$3.$7.id': value 'xyz.bluspring:AsmFabricLoader:1.3.3-SNAPSHOT:20251024.135151-1' cannot be serialized.
Don't know how to serialize an object of type org.gradle.api.internal.artifacts.repositories.resolver.MavenUniqueSnapshotComponentIdentifier.
How to fix it in plugin? https://github.com/terrarium-earth/jvm-multiplatform/blob/main/classpath-api-stubs/src/main/kotlin/net/msrandom/stubs/GenerateStubApi.kt#L25 https://gradle.com/s/vlkllhuaeyuc2
v
Because one of the dependencies is a snapshot dependency and you store its
ComponentIdentifier
in a
@Nested
input property which roughly means it must be a fully-managed type or Java-serializable. And it seems in the snapshot case the component identifier is neither. You probably need to switch from using the whole
ComponentIdentifier
there to only having the detail you use if it is one, or an own class that holds the information you need later on and that is either a managed type or serializable.