Slackbot
02/05/2023, 3:15 PMephemient
02/05/2023, 3:20 PMsrc/main/java/**, create a task that copies it with modifications, and add the task to sourceSets.main.java.srcDir().
second easiest hack would be similar, but leave the code in src/main/java/** and use sourceSets.main.java.setSrcDirs() so that it doesn't try looking there in the first place.
(this is liable to confuse the IDE, but if that's what you gotta do…)