I've created a custom constraint (most code copied from NullableConstraint) that I'd like to use in my project.
How do I register this new constraint so I can use it in my domain classes and command objects? I've tried following this answer but that didn't work. I also tried copying the code from here but that didn't work either.
In your Config.groovy add the follow:
And then use this constraint in your domain: