title: Splitting all output directories in Gradle
body: <p>Gradle 4.0 came out yesterday and I updated my project for it.</p>
  
  <p>Now I am getting the following warning:</p>
  
  <blockquote>
    <p>Gradle now uses separate output directories for each JVM language, but
    this build assumes a single directory for all classes from a source
    set. This behaviour has been deprecated and is scheduled to be removed
    in Gradle 5.0</p>
  </blockquote>
  
  <p>I would like to use separate output directories for each language. What do I need to change to make that happen?</p>
  
  <hr>
  
  <p>Things I tried:</p>
  
  <ul>
  <li><code>gradle clean</code> followed by <code>gradle build</code></li>
  <li>deleting the build directory then running <code>gradle build</code>.</li>
  <li>deleting the gradle and build directory then running <code>gradle</code></li>
  </ul>
  
  <hr>
  
  <p>Related GitHub <a href="https://github.com/junit-team/junit5/issues/865" rel="noreferrer">issue</a></p>
  
  <hr>
  
  <p>Gradle Plugins:</p>
  
  <ul>
  <li>java</li>
  <li>eclipse</li>
  <li>idea</li>
  <li>org.springframework.boot</li>
  </ul>