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
285 stars 120 forks source link

Support Gradle 8.0 #664

Closed Goooler closed 7 months ago

Goooler commented 1 year ago

Links #655.

jmewes commented 1 year ago

A build using Gradle 7.3.3 creates the following warning message from asciidoctor task for us:

$ ./gradlew clean build --warning-mode all 

> Task :asciidoctor
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.3.3/userguide/upgrading_version_7.html#java_exec_properties

BUILD SUCCESSFUL in 22s
10 actionable tasks: 10 executed

I suppose that this is coming from the following line of code:

https://github.com/asciidoctor/asciidoctor-gradle-plugin/blob/996df6a/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy#L582

Also see

ysb33r commented 1 year ago

This should be fixed when 4.0.0-alpha.2 comes out