asciidoctor / asciidoctor-gradle-plugin

A Gradle plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
https://asciidoctor.github.io/asciidoctor-gradle-plugin/
Apache License 2.0
283 stars 120 forks source link

Fix Gradle 8 warning from AbstractAsciidoctorTask #690

Closed slovdahl closed 6 months ago

slovdahl commented 7 months ago

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.

Seems like mainClass was added in Gradle 6.4:

ysb33r commented 6 months ago

Thanks for the effort, but I am rejecting this as the fix is already in another branch.