I haven’t been able to get this to work by dynamically updating the source set. However, I was able to get it to work by adding the resource path to the testCompile
dependency. Thanks, @tiedev for your help.
Update: It’s still not ideal since the “solution” only adds the class folder to the compile path, it doesn’t treat it as a resource (e.g., copy it to the runtime class folder).