title: How to run JUnit5 and JUnit4 in same Gradle build?
body: <p>I read an answer about Maven but I was wondering how I would achieve this task in Gradle - <a href="https://stackoverflow.com/questions/47158583/executing-junit-4-and-junit-5-tests-in-a-same-build/47158584#47158584">Executing JUnit 4 and JUnit 5 tests in a same build</a>.</p>
  
  <p>Currently my Gradle build only picks up tests with:
  <code>import org.junit.jupiter.api.Test;</code></p>
  
  <p>My problem is that I'm using <code>@RunWith</code> which needs JUnit4 to run but I want to execute it on a JUnit5 Vintage Engine.</p>
  
  <p>How do I make my build such that I can run JUnit4 and JUnit5 together. Thanks.</p>
  
  <p>Update:
  Now there is a native <code>Mockito Junit Jupiter</code> for JUnit 5 - <a href="https://mvnrepository.com/artifact/org.mockito/mockito-junit-jupiter" rel="noreferrer">https://mvnrepository.com/artifact/org.mockito/mockito-junit-jupiter</a></p>