Skip to content

Commit cefa5f4

Browse files
Document the usage of release types (#206)
Since gh-179 users can set java_release_type and choose if they want support for GA/EA/both builds. See gh-179
1 parent 816abec commit cefa5f4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,22 @@ $ cat .tool-versions
6666
java adoptopenjdk-11.0.16+8
6767
```
6868

69+
### Early Access builds
70+
71+
If you want to use Early Access builds (they allow you to prepare for the next version of the JDK but they are not stable releases), you can set `java_release_type` in `.asdfrc`, the supported values are:
72+
- `ga`: You can only install GA (General Availability / stable) releases (default)
73+
- `ea`: You can only install EA (Early Access / unstable) builds
74+
- `all`: You can install both GA and EA builds
75+
76+
After you set the value (e.g.: `java_release_type=all`), you need to prune the cache of asdf-java so that asdf will refresh the available versions to install:
77+
```shell
78+
export ASDF_JAVA_CACHE_DIR="${TMPDIR:-/tmp}/asdf-java.cache/"
79+
ls -al "$ASDF_JAVA_CACHE_DIR"
80+
rm -rf "$ASDF_JAVA_CACHE_DIR"
81+
```
82+
83+
After these steps, `asdf list-all java` should show you the type of builds you set and you can install them.
84+
6985
## JAVA_HOME
7086
To set `JAVA_HOME` in your shell's initialization add the following:
7187

0 commit comments

Comments
 (0)