Gradle Jmeter integration

I am new to Jmeter and Gradle. I am trying to execute Jmeter (.jmx) test case using gradle build. I found classpath “” plugin to integrate jmeter in gradle.
It works fine. But on failure of test cases stating build success as follows

There were test errors. See the jmeter logs for details


I was expecting to get build failure upon any test case failure. Is that possible to achieve it ? Any suggestion would be helpful.