I have a grade project that has a customized processTestResources task that does some property filtering using ReplaceTokens. When running tests on the gradle command line, processTestResources is run and then the output directory is put on the classpath for the test. If I want to run a test from within Intellij, perhaps for debugging purposes, Intellij uses a different otuput path (per the JetGradle plugin configuration) and does not honor the gradle configurations.
Is there any way to run tests inside of Intellij and benefit from gradle's build configurations? Is there any way to get, at a minimum, Intellij to use the same otuput directories as gradle so that processed resources can be recognized on the classpath when running tests?