Change maven artifact file extension

I have maven artifacts in repository xml with some extensions like:

<dependency>
      <groupId>modules</groupId>
      <artifactId>lib</artifactId>
      <version>123</version>
      <type>**ext-file**</type>
</dependency>

/.m2/repository/…/modules/bootstrap.ext is located in repository correctly
But gradle search for bootstrap.ext-file

How i can change this on my build side?

com.intellij.openapi.externalSystem.model.ExternalSystemException: Could not find lib.nbm-file
Searched in the following locations:
file:/C:/Users/user/.m2/repository/org/modules/api/org/version/lib.nbm-file
at org.jetbrains.plugins.gradle.model.ProjectImportAction.addBuildModels(ProjectImportAction.java:412)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:138)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:42)

For example with modules:lib:123@ext.
Or if it is a transitive dependency, then better use a component metadata rule to fix the metadata of the faulty component.