Add support for maven/gradle versions

- Essentially use same concepts as jdk install to switch
  maven and gradle versions if those are defined with config.
- Bump to tool-cache 1.3.0 as 1.0.0 tries to use
  node_modules/@actions/tool-cache/scripts/externals/unzip which doesn't have
  execute flag so you'd get `Permission denied`
- `extractZipNix` in toolkit no longer support relative path so needs to
  resolve absolute path before passing file to these methods.
- Commit has my local build for `index.js` which probably should get
  recreated but makes it easier to test this from a PR branch.
- Fixes #40
This commit is contained in:
Janne Valkealahti 2020-01-17 12:58:57 +00:00
commit 7b8939ae83
11 changed files with 5380 additions and 2890 deletions

View file

@ -34,6 +34,26 @@ inputs:
settings-path:
description: 'Path to where the settings.xml file will be written. Default is ~/.m2.'
required: false
maven-version:
description: 'The Maven version to make available on the path. Takes a whole
or semver Maven version, or 3.x syntax (e.g. 3.6 => Maven 3.x)'
required: false
maven-file:
description: 'Path to where the compressed Maven is located. The path could
be in your source repository or a local path on the agent.'
required: false
maven-mirror:
description: 'Uri hosting Maven3 mirror packages.'
required: false
default: 'https://archive.apache.org/dist/maven/maven-3/'
gradle-version:
description: 'The Gradle version to make available on the path. Takes a whole
or semver Gradle version, or 6.x syntax (e.g. 6.0 => Gradle 6.x)'
required: false
gradle-file:
description: 'Path to where the compressed Gradle is located. The path could
be in your source repository or a local path on the agent.'
required: false
runs:
using: 'node12'
main: 'dist/index.js'