Custom artifact resolver

Hello,

Is it possible to write a plugin for Gradle which register custom artifact resolver and will handle and resolve project dependencies?

dependencies {
    implementation 'gtest:1.8.1'
}

For example artifact, ‘gtest’ with version ‘1.8.1’ wasn’t found in default repositories (Ivy, Maven etc) and will be passed to custom resolver provided by a plugin.