Used staged non-released artifacts in a build

It sometimes happens that I will want to verify that a new component from a separate build will not break my existing build. The maven repository lets me stage candidate artifacts without releasing them. How can I configure my gradle build to try such artifacts?