JBANG EXPORT

NAME

jbang export — Export the result of a build or the set of the sources to a project.

SYNOPSIS

jbang export [OPTIONS] [COMMAND]

Builds a script, jar or GAV and exports the result in a form you can ship or keep working on: a runnable jar (local, portable or fat), a native executable, a minimized JDK image, a Maven repository layout, or a full Gradle/Maven project.

Examples:

jbang export fatjar hello.java
jbang export portable -O dist/app.jar hello.java
jbang export native hello.java
jbang export maven -g org.acme hello.java

OPTIONS

-h, --help

Display this help and exit

--config=<config>

Path to config file to be used instead of the default

--insecure

Enable insecure trust of all SSL certificates.

--[no-]verbose

jbang will be verbose on what it does.

--[no-]quiet

jbang will be quiet, only print when error occurs.

-o, --[no-]offline

Work offline. Fail-fast if dependencies are missing.

--[no-]fresh

Make sure we use fresh (i.e. non-cached) resources.

-x, --[no-]stacktrace

Print exceptions stacktraces to stderr (even when quiet).

--netrc=<netrc>

Path to a .netrc file for HTTP authentication credentials.

--no-netrc

Disable .netrc authentication lookup.

COMMANDS

  • portable - Exports jar together with dependencies in way that makes it portable

  • local - Exports jar with classpath referring to local machine dependent locations

  • mavenrepo - Exports directory that can be used to publish as a maven repository

  • native - Exports native executable

  • fatjar - Exports an executable jar with all necessary dependencies included inside

  • jlink - Exports a minimized JDK distribution

  • gradle - Exports a Gradle project

  • maven - Exports a Maven project