@@ -11,18 +11,31 @@ This action will set up the Java SDK.
1111#### Example:
1212
1313``` yaml
14- - uses : aboutbits/github-actions-java/setup@v2
14+ - uses : aboutbits/github-actions-java/setup@v3
1515` ` `
1616
1717#### Inputs
1818
1919The following inputs can be used as ` step.with` keys:
2020
21- | Name | Required/Default | Description |
22- |------------------------|------------------|---------------------------|
23- | `working-directory` | `.` | The working directory |
24- | `java-version` | `21` | Java Version |
25- | `distribution` | `corretto` | Java Distribution |
21+ | Name | Required/Default | Description |
22+ |---------------------|------------------------|------------------------------------------------------------------|
23+ | `working-directory` | `.` | The working directory |
24+ | `java-version` | `21` | Java Version |
25+ | `distribution` | `corretto` | Java Distribution |
26+ | `cache` | `true` | Enable Maven dependency caching. |
27+ | `cache-name` | `aboutbits-setup-java` | Cache name. Caches with the same name will share their contents. |
28+
29+ # ### Outputs
30+
31+ The following outputs are forwarded from the underlying `setup-java` and `cache` actions :
32+
33+ | Name | Description |
34+ |----------------|-----------------------------------------------------------------------------|
35+ | `distribution` | Distribution of Java that has been installed. |
36+ | `version` | Actual version of the java environment that has been installed. |
37+ | `path` | Path to where the java environment has been installed (same as $JAVA_HOME). |
38+ | `cache-hit` | A boolean value to indicate an exact match was found for the primary key. |
2639
2740# ## Setup Java and Install Dependencies
2841
@@ -31,43 +44,57 @@ This action will set up the Java SDK and install all dependencies.
3144# ### Example:
3245
3346` ` ` yaml
34- - uses: aboutbits/github-actions-java/setup-and-install@v2
47+ - uses: aboutbits/github-actions-java/setup-and-install@v3
3548` ` `
3649
3750# ### Inputs
3851
3952The following inputs can be used as `step.with` keys :
4053
41- | Name | Required/Default | Description |
42- |------------------------|------------------|---------------------------|
43- | `working-directory` | `.` | The working directory |
44- | `java-version` | `21` | Java Version |
45- | `distribution` | `corretto` | Java Distribution |
54+ | Name | Required/Default | Description |
55+ |---------------------|------------------------|------------------------------------------------------------------|
56+ | `working-directory` | `.` | The working directory |
57+ | `java-version` | `21` | Java Version |
58+ | `distribution` | `corretto` | Java Distribution |
59+ | `cache` | `true` | Enable Maven dependency caching. |
60+ | `cache-name` | `aboutbits-setup-java` | Cache name. Caches with the same name will share their contents. |
61+
62+ # ### Outputs
63+
64+ The following outputs are forwarded from the underlying `setup-java` and `cache` actions :
4665
66+ | Name | Description |
67+ |----------------|-----------------------------------------------------------------------------|
68+ | `distribution` | Distribution of Java that has been installed. |
69+ | `version` | Actual version of the java environment that has been installed. |
70+ | `path` | Path to where the java environment has been installed (same as $JAVA_HOME). |
71+ | `cache-hit` | A boolean value to indicate an exact match was found for the primary key. |
4772
4873# # Versioning
4974
50- In order to have a versioning in place and working, create lightweight tags that point to the appropriate minor release versions.
75+ In order to have a versioning in place and working, create lightweight tags that point to the appropriate minor release
76+ versions.
5177
5278Creating a new minor release :
5379
5480` ` ` bash
55- git tag v2
81+ git tag v3
5682git push --tags
5783` ` `
5884
5985Replacing an already existing minor release :
6086
6187` ` ` bash
62- git tag -d v2
63- git push origin :refs/tags/v2
64- git tag v2
88+ git tag -d v3
89+ git push origin :refs/tags/v3
90+ git tag v3
6591git push --tags
6692` ` `
6793
6894# # Information
6995
70- About Bits is a company based in South Tyrol, Italy. You can find more information about us on [our website](https://aboutbits.it).
96+ About Bits is a company based in South Tyrol, Italy. You can find more information about us
97+ on [our website](https://aboutbits.it).
7198
7299# ## Support
73100
0 commit comments