title: JUnit5 integration tests with Gradle 4.6
body: <p>Gradle 4.6 added <a href="https://docs.gradle.org/4.6/release-notes.html#junit-5-support" rel="nofollow noreferrer">support</a> for JUnit5.</p>
  
  <p>This works for me as long as I don't have another sourceset for e.g. integration tests: I do not know how to enable <code>useJUnitPlatform()</code> in my integration tests.</p>
  
  <p>What I was able to do is to have <code>test</code> task working with new JUnit5 support, but my <code>testInt</code> task was using JUnit5 console and running tests as it would run from command line. At the end I ditch JUnit5 support in gradle and rollback to using JUnit5 console for both tests.</p>
  
  <p>How to enable Gradle 4.6 JUnit5 support on other tasks then <code>test</code>?</p>