enforcer-gradle-plugin icon indicating copy to clipboard operation
enforcer-gradle-plugin copied to clipboard

Trigger enforcer separately

Open Floppy012 opened this issue 2 years ago • 1 comments

Is there a way to trigger the enforcer separately like the maven enforcer:enforce goal?

I'm trying to use the enforcer in a separate CI job that just does that. Also the enforcer should not be active in the other jobs.

Floppy012 avatar Aug 09 '22 21:08 Floppy012

No, there's no such compatible task. Although you can set a System property enforcer.enabled to control whether all enforcer rules are triggered or not.

aalmiray avatar Aug 10 '22 05:08 aalmiray