@Baron_Roberts mentions over here that jdepend doesn’t support Java 8. It runs, and generates the XML report fine. but ant:jdependreport fails with “Unknown constant: 18” and most significantly, the build doesn’t halt if there are package cycles.
I need a way for my build to fail if it contains package cycles.
I’m tempted to write a plugin that scans the report file to see if the Cycles tag is empty just so I can move on, but I’d prefer to use a supported solution. Has anyone found a workaround to fail on package cycles in gradle in Java 8?