You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `setup-java` action provides the following functionality for GitHub Actions runners:
6
-
- Downloading and setting up a requested version of Java. See [Usage](#Usage) for a list of supported distributions
7
-
- Extracting and caching custom version of Java from a local file
8
-
- Configuring runner for publishing using Apache Maven
9
-
- Configuring runner for publishing using Gradle
10
-
- Configuring runner for using GPG private key
11
-
- Registering problem matchers for error output
12
-
- Caching dependencies managed by Apache Maven
13
-
- Caching dependencies managed by Gradle
14
-
- Caching dependencies managed by sbt
15
-
-[Maven Toolchains declaration](https://maven.apache.org/guides/mini/guide-using-toolchains.html) for specified JDK versions
6
+
- Downloading and setting up a requested version of Java. See [Usage](#Usage) for a list of supported distributions.
7
+
- Extracting and caching custom version of Java from a local file.
8
+
- Configuring runner for publishing using Apache Maven.
9
+
- Configuring runner for publishing using Gradle.
10
+
- Configuring runner for using GPG private key.
11
+
- Registering problem matchers for error output.
12
+
- Caching dependencies managed by Apache Maven.
13
+
- Caching dependencies managed by Gradle.
14
+
- Caching dependencies managed by sbt.
15
+
-[Maven Toolchains declaration](https://maven.apache.org/guides/mini/guide-using-toolchains.html) for specified JDK versions.
16
16
17
17
This action allows you to work with Java and Scala projects.
18
18
19
19
## V2 vs V1
20
20
21
-
- V2 supports custom distributions and provides support for Azul Zulu OpenJDK, Eclipse Temurin and AdoptOpenJDK out of the box. V1 supports only Azul Zulu OpenJDK
22
-
- V2 requires you to specify distribution along with the version. V1 defaults to Azul Zulu OpenJDK, only version input is required. Follow [the migration guide](docs/switching-to-v2.md) to switch from V1 to V2
21
+
- V2 supports custom distributions and provides support for Azul Zulu OpenJDK, Eclipse Temurin and AdoptOpenJDK out of the box. V1 supports only Azul Zulu OpenJDK.
22
+
- V2 requires you to specify distribution along with the version. V1 defaults to Azul Zulu OpenJDK, only version input is required. Follow [the migration guide](docs/switching-to-v2.md) to switch from V1 to V2.
23
23
24
24
## Usage
25
25
@@ -37,7 +37,7 @@ This action allows you to work with Java and Scala projects.
37
37
38
38
-`check-latest`: Setting this option makes the action to check for the latest available version for the version spec.
39
39
40
-
-`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".
40
+
-`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".
41
41
42
42
#### Maven options
43
43
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 as well as Apache Maven Toolchains. See [advanced usage](docs/advanced-usage.md) for more.
@@ -52,9 +52,9 @@ This action allows you to work with Java and Scala projects.
52
52
53
53
-`settings-path`: Maven related setting to point to the directory where the settings.xml file will be written. Default is ~/.m2.
54
54
55
-
-`gpg-private-key`: GPG private key to import. Default is empty string.'
55
+
-`gpg-private-key`: GPG private key to import. Default is empty string.
56
56
57
-
-`gpg-passphrase`: description: 'Environment variable name for the GPG private key passphrase. Default is GPG_PASSPHRASE.
57
+
-`gpg-passphrase`: description: Environment variable name for the GPG private key passphrase. Default is GPG_PASSPHRASE.
58
58
59
59
-`mvn-toolchain-id`: Name of Maven Toolchain ID if the default name of `${distribution}_${java-version}` is not wanted.
60
60
@@ -162,7 +162,7 @@ In the basic examples above, the `check-latest` flag defaults to `false`. When s
162
162
163
163
If `check-latest` is set to `true`, the action first checks if the cached version is the latest one. If the locally cached version is not the most up-to-date, the latest version of Java will be downloaded. Set `check-latest` to `true` if you want the most up-to-date version of Java to always be used. Setting `check-latest` to `true` has performance implications as downloading versions of Java is slower than using cached versions.
164
164
165
-
For Java distributions that are not cached on Hosted images, `check-latest` always behaves as `true` and downloads Java on-flight. Check out [Hosted Tool Cache](docs/advanced-usage.md#Hosted-Tool-Cache) for more details about pre-cached Java versions.
165
+
For Java distributions that are not cached on Hosted images, `check-latest` always behaves as `true` and downloads Java on-flight. Check out [Hosted Tool Cache](docs/advanced-usage.md#Hosted-Tool-Cache) for more details about pre-cached Java versions.
0 commit comments