This demo shows the usage Asciidoctor Java extensions in AsciidocFX. Extension originally available on https://github.com/bmuschko/asciidoctorj-tabbed-code-extension
Groovy
docker {
registryCredentials {
url = 'https://gcr.io'
username = '_json_key'
password = file('keyfile.json').text
}
}
Kotlin
docker {
registryCredentials {
url.set("https://gcr.io")
username.set("_json_key")
password.set(file("keyfile.json").readText())
}
}