Skip to content

Instantly share code, notes, and snippets.

@wfouche
Created July 7, 2025 22:08
Show Gist options
  • Select an option

  • Save wfouche/c2c2e95eed049dd4ea1ec8f90da508b3 to your computer and use it in GitHub Desktop.

Select an option

Save wfouche/c2c2e95eed049dd4ea1ec8f90da508b3 to your computer and use it in GitHub Desktop.
JBang - asciidoctorj.java
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS org.asciidoctor:asciidoctorj:3.0.0
//DEPS org.asciidoctor:asciidoctorj-api:3.0.0
//DEPS org.asciidoctor:asciidoctorj-cli:3.0.0
//DEPS org.asciidoctor:asciidoctorj-epub3:2.1.3
//DEPS org.asciidoctor:asciidoctorj-diagram:3.0.1
//DEPS org.asciidoctor:asciidoctorj-diagram-batik:1.17
//DEPS org.asciidoctor:asciidoctorj-diagram-ditaamini:1.0.3
//DEPS org.asciidoctor:asciidoctorj-diagram-plantuml:1.2025.3
//DEPS org.asciidoctor:asciidoctorj-diagram-jsyntrax:1.38.2
//DEPS org.asciidoctor:asciidoctorj-pdf:2.3.19
//DEPS org.asciidoctor:asciidoctorj-revealjs:5.2.0
//DEPS com.beust:jcommander:1.82
//DEPS org.jruby:jruby-complete:9.4.8.0
import java.io.IOException;
public class asciidoctorj {
public static void main(String[] args) throws IOException {
org.asciidoctor.cli.jruby.AsciidoctorInvoker.main(args);
}
}
@wfouche
Copy link
Author

wfouche commented Jul 7, 2025

$ jbang run asciidoctorj.java -V
AsciidoctorJ 3.0.0 (Asciidoctor 2.0.23) [https://asciidoctor.org]
Runtime Environment: jruby 9.4.8.0 (3.1.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment