The origin project creates a Maven action with only JDK 8. But I'm writing java with JDK 11 and in the short future I'll keep using JDK 11. So I have forked the origin repository and add support for JDK 11.
The GitHub Action for Maven wraps the Maven CLI to enable Maven commands to be run. This can be used to run every Maven Command.
Maven with JDK 8:
action "package" {
uses = "xlui/action-maven-cli/jdk8@master"
args = "clean package"
}
Maven with JDK 11:
action "package" {
uses = "xlui/action-maven-cli/jdk11@master"
args = "clean package"
}
Also, there is another way to use Maven with JDK 11:
action "package" {
uses = "xlui/action-maven-cli@master"
args = "clean package"
}
It is simply for forward-compatibility.
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.