melix / jmh-gradle-plugin

Integrates the JMH benchmarking framework with Gradle
Apache License 2.0
659 stars 88 forks source link

Replace `setMain` by `getMainClass.set` to support future Gradle 8.0 #219

Closed bric3 closed 2 years ago

bric3 commented 2 years ago

Running jmh with gradle 7.4.1 we now get this warning, this PR replaces this with the new API.

> Task :jmh-panama:jmhRunBytecodeGenerator
The JavaExecHandleBuilder.setMain(String) method has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the mainClass property instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.4.1/userguide/upgrading_version_7.html#java_exec_properties

This was the only usage left.