title: How to copy resource files in classes folder with gradle?
body: <p><strong>Enviroment</strong></p>
  
  <p>I am using a third party lib which requires bytecode instrumentation. The tool which does the bytecode instrumentation requires some description files and those files have to be in the same folder structure like the compiled .class files. Those files are only necessary at compiletime.</p>
  
  <p><strong>Problem</strong></p>
  
  <p>I thought gradle would place all files (resource and class) temporarily within the same folder and then create a jar from that folder. But it seems that gradle have two different places for resources and class files before assembling a jar.
  Like mentioned before the third party tool for code instrumentation requires the description files in the same folderstructure like the class files.</p>
  
  <p><strong>Question</strong></p>
  
  <p>Simply: How can I solve this Problem?</p>
  
  <p><strong>Ideas</strong></p>
  
  <ol>
  <li>Place the description files with in <code>src/main/java</code>. Not very "clean" but could be a solution. Sadly gradle ignores those files. I tried to include them somehow but didn't get it working yet.</li>
  <li>Temporarily copy the description files to the right place. Also not a very "clean" way</li>
  </ol>