jvm args for AbstractGemPrepareTask
I try to use the org.asciidoctor.jvm.gems plugin which uses this plugin under the hood.
For the AsciidoctorGemPrepare which extends AbstractGemPrepareTask, I do not see a good way to configure additional JVM arguments.
The Asciidoctor task for example extends the AbstractJvmModelExecTask task and thus has a jvm { ... } function to do that.
The only way I have seen for the AsciidoctorGemPrepare task is to either use Groovy DSL as there the protected foo() can be used like foo().jvm { ... },
or as this project is done in Groovy, in Kotlin DSL do (metaClass.getMetaMethod("foo", emptyArray()).invoke(this, emptyArray()) as JRubyExecSpec).jvm { ... },
but both are a bit sub-optimal I'd say. :-)