Skip to content

Commit 499ae9c

Browse files
Merge pull request actions#387 from akv-platform/v-sdolin/issue-382-docs2
Add inputs documentation to README
2 parents a18c333 + cdc5f29 commit 499ae9c

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

README.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,36 @@ This action allows you to work with Java and Scala projects.
2222

2323
## Usage
2424

25-
Inputs `java-version` and `distribution` are mandatory. See [Supported distributions](#supported-distributions) section for a list of available options.
25+
- `java-version`: _(required)_ The Java version to set up. Takes a whole or [semver](#supported-version-syntax) Java version.
26+
27+
- `distribution`: _(required)_ Java [distribution](#supported-distributions).
28+
29+
- `java-package`: The packaging variant of the choosen distribution. Possible values: `jdk`, `jre`, `jdk+fx`, `jre+fx`. Default value: `jdk`.
30+
31+
- `architecture`: The target architecture of the package. Possible values: `x86`, `x64`, `armv7`, `aarch64`, `ppc64le`. Default value: `x64`.
32+
33+
- `jdkFile`: If a use-case requires a custom distribution setup-java uses the compressed JDK from the location pointed by this input and will take care of the installation and caching on the VM.
34+
35+
- `check-latest`: Setting this option makes the action to check for the latest available version for the version spec.
36+
37+
- `cache`: Quick [setup caching](#caching-packages-dependencies) for the dependencies managed through one of the predifined package managers. It can be one of "maven", "gradle" or "sbt".
38+
39+
#### Maven options
40+
The action has a bunch of inputs to generate maven's [settings.xml](https://maven.apache.org/settings.html) on the fly and pass the values to Apache Maven GPG Plugin. See [advanced usage](docs/advanced-usage.md) for more.
41+
42+
- `overwrite-settings`: By default action overwrites the settings.xml. In order to skip generation of file if it exists set this to `false`.
43+
44+
- `server-id`: ID of the distributionManagement repository in the pom.xml file. Default is `github`.
45+
46+
- `server-username`: Environment variable name for the username for authentication to the Apache Maven repository. Default is GITHUB_ACTOR.
47+
48+
- `server-password`: Environment variable name for password or token for authentication to the Apache Maven repository. Default is GITHUB_TOKEN.
49+
50+
- `settings-path`: Maven related setting to point to the diractory where the settings.xml file will be written. Default is ~/.m2.
51+
52+
- `gpg-private-key`: GPG private key to import. Default is empty string.'
53+
54+
- `gpg-passphrase`: description: 'Environment variable name for the GPG private key passphrase. Default is GPG_PASSPHRASE.
2655

2756
### Basic Configuration
2857

@@ -197,4 +226,4 @@ The scripts and documentation in this project are released under the [MIT Licens
197226

198227
## Contributions
199228

200-
Contributions are welcome! See [Contributor's Guide](docs/contributors.md)
229+
Contributions are welcome! See [Contributor's Guide](docs/contributors.md)

0 commit comments

Comments
 (0)