Fix error message when the JMH Gradle plugin is being used with an unsupported version of Gradle.
As of version 0.6.4, the plugin only mentions Gradle 6+ as requirement, which makes the error message a bit unclear.
Example with Gradle 6.7.1:
* What went wrong:
An exception occurred applying plugin request [id: 'me.champeau.jmh', version: '0.6.4']
> Failed to apply plugin 'me.champeau.jmh'.
> This version of the JMH Gradle plugin requires Gradle 6+, you are using 6.7.1. Please upgrade Gradle or use an older version of the plugin.
This PR is using the minimal Gradle version defined in JMHPlugin to build the error message and adds a functional test to verify the message is correct.
Fix error message when the JMH Gradle plugin is being used with an unsupported version of Gradle.
As of version 0.6.4, the plugin only mentions Gradle 6+ as requirement, which makes the error message a bit unclear.
Example with Gradle 6.7.1:
This PR is using the minimal Gradle version defined in
JMHPlugin
to build the error message and adds a functional test to verify the message is correct.