This change should fix the following warning seen with e.g. Gradle 8.5:
The JavaExecSpec.main property has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the mainClass property instead. For more information, please refer to https://docs.gradle.org/8.5/dsl/org.gradle.process.JavaExecSpec.html#org.gradle.process.JavaExecSpec:main in the Gradle documentation.
This change should fix the following warning seen with e.g. Gradle 8.5:
Seems like
mainClass
was added in Gradle 6.4: