jar_is_multi_release

This function will display whether the given JAR file is a multi-release JAR file (1) or not (0).

The exit code of this function is the inverse of the displayed value.

Usage

$ curl -L -O -s https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/5.11.0/junit-jupiter-api-5.11.0.jar
$ jar_is_multi_release junit-jupiter-api-5.11.0.jar
0
$ echo $?
1

$ curl -L -O -s https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy/1.15.0/byte-buddy-1.15.0.jar
$ jar_is_multi_release byte-buddy-1.15.0.jar
1
$ echo $?
0
$ jar_manifest byte-buddy-1.15.0.jar | grep Multi
Multi-Release: true

Prerequisites