title: Run Unit tests with gradlew and custom JRE
body: <p>I am trying to run my project's unit tests using the Gradle wrapper in order to integrate the development with Jenkins. The problem is that I have to run the tests using the JRE option in the GUI to Android-28 but the project is compiled with Android-26 due to some limitations.</p>
  
  <p>How can I select the JRE using the Gradle wrapper? Is there something like:</p>
  
  <pre><code>./gradlew test --api 28
  </code></pre>