Dependency Management - Require Release Version

This came up in a discussion, and I’m curious if there’s an established “Gradle” way to do this (similar to Maven’s Enforcer Rules (

Is there a (easy, out of the box) way to have Gradle enforce a similar rule, in direct and transitive dependencies?

Basically, if a project depends on a changing or dynamic version, to fail the build with an exception?

I’m sure there’s some way using component selection rules, but before I went down that road making something that might be complicated, I figured I’d ask if there was an already established way to do this.