Resolution strategy disallows usage of changing versions

I am trying to build a minecraft mod with a dependency built from source and published to my local maven repository however gradle complains with:

> Could not resolve all files for configuration ':detachedConfiguration1'.
   > Could not resolve org.parchmentmc.data:parchment-1.20.5:2024.04.25-local-SNAPSHOT.
     Required by:
         project :
      > Could not resolve org.parchmentmc.data:parchment-1.20.5:2024.04.25-local-SNAPSHOT: Resolution strategy disallows usage of changing versions

I can’t seem to find a way to disable this error anywhere on google or github issues or forums.

Edit: A temporary solution is to remove -SNAPSHOT from the dependency build.gradle file and republish it.

You or some plugin you apply is calling ResolutionStrategy#failOnChangingVersions.
This cannot be undone without reflection, changing the value of a private field.