Add functionality to setup maven binary

Add functionality to setup maven in order to use for
project building
This commit is contained in:
Pavel Gonchukov 2021-02-22 21:36:35 +01:00
parent 104660f1cc
commit c45a722262
No known key found for this signature in database
GPG key ID: AA78DD4317B862F7
10 changed files with 150 additions and 60 deletions

View file

@ -23,6 +23,8 @@ async function run() {
)
};
const mvnVersion = core.getInput(constants.INPUT_MAVEN_VERSION);
if (!isValidOptions(mvnOpts)) {
throw new Error(
'Some of the Maven options is empty: please check maven-* parameters'
@ -40,6 +42,9 @@ async function run() {
const jdkFile = core.getInput(constants.INPUT_JDK_FILE, {required: false});
await installer.getJava(version, arch, jdkFile, javaPackage);
if (mvnVersion) {
await installer.getMaven(mvnVersion);
}
const matchersPath = path.join(__dirname, '..', '..', '.github');
core.info(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);