Configuration as a parameter of an Artifact transform

Is there any way to store a Configuration (or more specifically, the files resolved by the configuration - I only need read-only access) as a parameter of an artifact transform? Currently I’m just casting the Configuration to a FileCollection (more or less) and that would be it for parameters for Tasks, but that’s not the case for artifact transforms, it seems. Kinda makes sense when you think about it (as cyclic dependencies might be an issue), but here I’d like to do so regardless.

Background: The configuration is just a reference to a .tinyv2.xz file stored in a remote repository and that file is then used to remap jars through the artifact transform so nothing too fancy.
I suppose I could manually invoke the maven artifact resolver, but that’s also prone to issues as I’d be effectively bypassing gradle’s dependency resolution mechanisms.

Current approach (doesn’t work):

    registerTransform(org.stianloader.sml6.transforms.RemapArtifactTransform) {
        from.attribute(ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE, 'jar')
        to.attribute(ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE, 'predeploy-mod')

        parameters {
            addMappingsConfiguration {
                containerFormat = XZ
                mappingFormat = TINY_2
                mappingSource = configurations.named('mappings')
            }
        }
    }

where as addMappingsConfiguration is

        public void addMappingsConfiguration(@NotNull Action<@NotNull MIOMappingsConfigurationProvider> configurationClosure) {
            Provider<MIOMappingsConfigurationProvider> provider = this.getProviders().provider(() -> {
                MIOMappingsConfigurationProvider fileProvider = this.getObjectFactory().newInstance(MIOMappingsConfigurationProvider.class);
                configurationClosure.execute(fileProvider);
                return fileProvider;
            });

            this.getMappings().add(provider);
        }

        @Nested
        public abstract ListProperty<MIOMappingsProvider> getMappings();

and MIOMappingsConfigurationProvider is sml6/src/main/java/org/stianloader/sml6/tasks/config/MIOMappingsConfigurationProvider.java at main · stianloader/sml6 · GitHub (RemapArtifactTransform is not yet pushed to the repository until I can get it to work, otherwise everything else it msotly the same as I have it right now)