Necessity is the mother of invention. We at OverStory had the necessity of running XRay unit tests on MarkLogic from within a Gradle build. But we were mildly surprised that there was no easy way to do that, so we invented an XRay plugin for Gradle.