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.
How can I select the JRE using the Gradle wrapper? Is there something like:
./gradlew test --api 28