jdk:
  - openjdk11

install:
  - unset JAVA_TOOL_OPTIONS
  - jshell --version
  - VERSION=$(java src/bach/Version.java)
  - if [[ $VERSION =~ ^.*-ea$ ]]; then java src/bach/Version.java ${VERSION}-${GIT_COMMIT}; fi
  - java src/bach/Version.java
  - java src/bach/Bootstrap.java
  - BACH="java --module-path .bach/out/main/modules --module de.sormuras.bach"
  - INSTALL="--batch-mode --no-transfer-progress install:install-file"
  - ${BACH} tool mvn ${INSTALL} @.bach/out/main/deploy/de.sormuras.bach/maven-cli-arguments.txt

jdk:
  - openjdk11

install:
  - unset JAVA_TOOL_OPTIONS
  - jshell --version
  - VERSION=$(java src/bach/Version.java)
  - if [[ $VERSION =~ ^.*-ea$ ]]; then java src/bach/Version.java ${VERSION}+${GIT_COMMIT}; fi
  - java src/bach/Version.java
  - java src/bach/Bootstrap.java
  - BACH="java --module-path .bach/out/main/modules --module de.sormuras.bach"
  - INSTALL="--batch-mode --no-transfer-progress install:install-file"
  - ${BACH} tool mvn ${INSTALL} @.bach/out/main/deploy/de.sormuras.bach/maven-cli-arguments.txt

Terminate pre-release token "ea" with a '+' character
Terminate pre-release token "ea" with a '+' character

https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/module/ModuleDescriptor.Version.html
