Skip to content

Commit 8fe58e4

Browse files
Document removal of oraclejdk from install-jdk.sh (travis-ci#2906)
Co-authored-by: Michał Rybiński <[email protected]>
1 parent ff0a4c2 commit 8fe58e4

File tree

1 file changed

+3
-45
lines changed

1 file changed

+3
-45
lines changed

user/languages/java.md

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ new to Travis CI please read our [Tutorial](/user/tutorial/) and
3131
3232
## Overview
3333
34-
The Travis CI environment contains various versions of OpenJDK, Oracle JDK,
34+
The Travis CI environment contains various versions of OpenJDK,
3535
Gradle, Maven and Ant.
3636
3737
To use the Java environment, add the following to your `.travis.yml`:
@@ -176,19 +176,6 @@ addons:
176176
```
177177
{: data-file=".travis.yml"}
178178

179-
## Testing Against Multiple JDKs
180-
181-
To test against multiple JDKs, use the `jdk:` key in `.travis.yml`. For example,
182-
to test against Oracle JDKs 8 and 9, as well as OpenJDK 8:
183-
184-
```yaml
185-
jdk:
186-
- oraclejdk8
187-
- oraclejdk9
188-
- openjdk8
189-
```
190-
{: data-file=".travis.yml"}
191-
192179
> Note that testing against multiple Java versions is not supported on macOS. See
193180
the [macOS Build Environment](/user/reference/osx/#jdk-and-macos) for more
194181
details.
@@ -208,48 +195,19 @@ If your build needs to switch JDKs (Java 8 and below) during a job, you can do s
208195

209196
```yaml
210197
script:
211-
- jdk_switcher use oraclejdk8
212-
- # do stuff with Java 8
213198
- jdk_switcher use openjdk8
214199
- # do stuff with open Java 8
215200
```
216201
{: data-file=".travis.yml"}
217202

218203
Use of `jdk_switcher` also updates `$JAVA_HOME` appropriately.
219204

220-
### Updating Oracle JDK 8 to a recent release
221-
222-
Your repository may require a newer release of Oracle JDK than the pre-installed
223-
version.
224-
(You can consult [the list of published Oracle JDK packages](https://launchpad.net/~webupd8team/+archive/ubuntu/java).)
225-
226-
The following example will use the latest Oracle JDK 8:
227-
228-
```yaml
229-
addons:
230-
apt:
231-
packages:
232-
- oracle-java8-installer
233-
```
234-
{: data-file=".travis.yml"}
235-
236205
## Using Java 10 and later
237206

238207
> Take note that `oraclejdk10` is EOL since October 2018 and as such it's not supported anymore on Travis CI.
239208
> See [https://www.oracle.com/technetwork/java/javase/eol-135779.html](https://www.oracle.com/technetwork/java/javase/eol-135779.html){: data-proofer-ignore=""}.
240-
241-
OracleJDK 11 and later are supported on Linux, and
242-
OpenJDK 10 and later are supported on Linux and macOS using
243-
[`install-jdk.sh`](https://github.com/sormuras/bach#install-jdksh).
244-
245-
```yaml
246-
jdk:
247-
- oraclejdk8
248-
- oraclejdk11
249-
- openjdk10
250-
- openjdk11
251-
```
252-
{: data-file=".travis.yml"}
209+
>
210+
> `openjdk` is now the default jdk available on our VMs as `install-jdk` no longer installs `oraclejdk`. Please see this [Github Issue](https://github.com/sormuras/bach/issues/56) for context.
253211

254212
### Switching JDKs (to Java 10 and up) Within One Job
255213

0 commit comments

Comments
 (0)