Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 2.26 KB

File metadata and controls

64 lines (47 loc) · 2.26 KB

Java Binary

Distributions of this type conform to the following file structure:

.
├── LICENSE
├── README
├── bin
│   ├── app
│   └── app.bat
└── lib
    └── app-1.0.0.jar

Where:

  • the bin folder contains executable launcher scripts.

  • the lib folder contains all required JARs.

Java binary distributions require a suitable Java runtime to be installed on the consumer side; they are usually packaged as Zip or Tar files. The archive must contain a root entry, typically following the name of the archive, thus if the archive is named app-1.2.3.zip the root entry should be app-1.2.3.

Creating a Distribution

We recommend using the following plugins to create suitable Java binary distributions:

Maven
Gradle
  • application plugin: generates distribution files that follow the expected structure. Also, packages the distribution as a Zip or Tar.

Alternatively, you may also configure a configuration:assemble/java-archive.adoc assembler to create an archive.

Packager Support

Packager Supported

configuration:packagers/appimage.adoc

{icon_req_y}

configuration:packagers/asdf.adoc

{icon_req_y}

configuration:packagers/chocolatey.adoc

{icon_req_y}

configuration:packagers/docker.adoc

{icon_req_y}

configuration:packagers/flatpak.adoc

{icon_req_y}

configuration:packagers/homebrew.adoc

{icon_req_y}

configuration:packagers/jbang.adoc

{icon_req_y}

configuration:packagers/macports.adoc

{icon_req_y}

configuration:packagers/scoop.adoc

{icon_req_y}

configuration:packagers/sdkman.adoc

{icon_req_y}

configuration:packagers/snap.adoc

{icon_req_y}

configuration:packagers/spec.adoc

{icon_req_y}