mirror of
https://github.com/actions/setup-java.git
synced 2025-07-23 23:18:26 +02:00
Add functionality to setup maven binary
Add functionality to setup maven in order to use for project building
This commit is contained in:
parent
104660f1cc
commit
c45a722262
10 changed files with 150 additions and 60 deletions
|
@ -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')}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue