Using a multi-module Gradle project with subprojects (i.e. IntelliJ modules) that have a single shared source outside the subproject folders, and with other source preprocessing, is a bit of a pain with IntelliJ run-and-debug features.
This is an attempt to explore how best to handle it using the simplest possible inputs.