AsciidoctorJ GEMs plugin

GEM support is simplified via the org.asciidoctor.jvm.gems plugin.

build.gradle
plugins {
    id 'org.asciidoctor.jvm.gems' version '4.0.2'
}

repositories {
    ruby {
        gems() (1)
    }
}

dependencies {
    asciidoctorGems 'rubygems:asciidoctor-revealjs:1.1.3' (2)
}

asciidoctorj {
    requires 'asciidoctor-revealjs' (3)
}
1 Always specify a GEM proxy. In this case use the internal proxy to rubygems.org.
2 Specify GEMs as per usual.
3 Add the GEM to the project-wide (or task-specific) list of requires.
build.gradle.kts
plugins {
    id("org.asciidoctor.jvm.gems") version "4.0.2"
}