Skip to content

Commit fbfa15c

Browse files
uzilanlemoncurry
authored andcommitted
Updated travis and documentation to use openjdk11 (exercism#1768)
* Updated travis jdk to openjdk11 * Updated documentation to use openjdk11
1 parent a38233c commit fbfa15c

5 files changed

Lines changed: 31 additions & 33 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
2-
dist: trusty
32
language: java
43
jdk:
5-
- oraclejdk8
4+
- openjdk11
65
env:
76
- SCRIPT=bin/unit-tests.sh
87

docs/ABOUT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ GitHub for example has over 1.5 million Java projects.
1212
It's also worth mentioning that Java has the second largest community in [StackOverflow](https://stackoverflow.com/questions/tagged/java)!
1313
This is important because the larger a programming language community is, the more support you'd be likely to get.
1414

15-
Java also has a powerful and well-designed set of built-in [APIs - Application Programming Interfaces](https://docs.oracle.com/javase/8/docs/api/), which can be used for various activities like Database connection, networking, I/O, XML parsing, utilities, and much more.
15+
Java also has a powerful and well-designed set of built-in [APIs - Application Programming Interfaces](https://docs.oracle.com/en/java/javase/11/docs/api/index.html), which can be used for various activities like Database connection, networking, I/O, XML parsing, utilities, and much more.
1616

1717
From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, [Java is everywhere](https://en.wikipedia.org/wiki/Write_once,_run_anywhere)!

docs/INSTALLATION.md

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Open an administrative command prompt. (If you need assistance opening an admin
3131
2. Install the JDK:
3232
3333
```batchfile
34-
C:\Windows\system32> choco install jdk8
34+
C:\Windows\system32> choco install openjdk11
3535
...
3636
C:\Windows\system32> refreshenv
3737
...
@@ -66,13 +66,13 @@ Below are instructions for install using the most common method - using Homebrew
6666
2. Tap the [Homebrew Cask](https://caskroom.github.io/) — this allows us to install pre-built binaries like the JDK.
6767
6868
```
69-
$ brew tap caskroom/cask
69+
$ brew tap adoptopenjdk/openjdk
7070
```
7171
7272
3. Install the JDK:
7373
7474
```
75-
$ brew cask install java
75+
$ brew cask install homebrew/cask-versions/java11
7676
```
7777
7878
4. Install Gradle:
@@ -96,19 +96,18 @@ Below are instructions for install using the package manager of your distro. If
9696
9797
## Debian
9898
99-
If you are using Debian or its derivatives (like Ubuntu or Linux Mint), use APT:
99+
If you are using Debian or its derivatives (like Ubuntu), use APT:
100100
101-
*(verified on: Linux Mint 18, Ubuntu 14)*
101+
*(verified on: Ubuntu 14, 16 and 18)*
102102
103103
1. Install the JDK:
104104
105105
```sh
106106
$ sudo apt-get update
107-
$ sudo apt-get install python-software-properties
108-
$ sudo add-apt-repository ppa:webupd8team/java
107+
$ sudo apt-get install software-properties-common
108+
$ sudo add-apt-repository ppa:openjdk-r/ppa
109109
$ sudo apt-get update
110-
$ sudo apt-get install oracle-java8-installer
111-
$ sudo apt install oracle-java8-set-default
110+
$ sudo apt-get install openjdk-11-jdk
112111
```
113112
114113
2. Install Gradle:
@@ -125,24 +124,24 @@ To get started, see "[Running the Tests](http://exercism.io/languages/java/tests
125124
126125
----
127126
128-
## Fedora
127+
## Other Linux distributions
129128
130-
If you are using Fedora or its derivatives, use DNF:
131-
132-
*(verified on: Fedora 24)*
133-
134-
1. Install the JDK:
135-
136-
```sh
137-
$ sudo dnf install java-1.8.0-openjdk-devel
138-
```
139-
140-
2. Install Gradle:
141-
142-
```sh
143-
$ sudo dnf install gradle
144-
```
129+
There are a lot of ways to install Jdk 11, but one of the easiest ways is to use SDKMAN, which lets you install
130+
both OpenJdk11 and the latest Gradle with ease. Use the following steps:
145131
132+
1. Install SDKMAN:
133+
```sh
134+
$ curl -s "https://get.sdkman.io" | bash
135+
```
136+
(if that doesn't work, take a look at the instructions found here: https://sdkman.io/install )
137+
1. Install openjdk11:
138+
```
139+
$ sdk install java 11.0.2-open
140+
```
141+
1. Install Gradle:
142+
```sh
143+
$ sdk install gradle
144+
```
146145
147146
You now are ready to get started with the Java track of Exercism!
148147
@@ -163,7 +162,7 @@ To get started, see "[Running the Tests](http://exercism.io/languages/java/tests
163162
*NOTE: these instructions are intended for experienced Windows users. If you don't already know how to set environment variables or feel comfortable managing the directory structure, we highly recommend you use the Chocolatey-based install, [above](#windows).*
164163
165164
1. Install the JDK:
166-
1. Download "**Java Platform (JDK)**" from [Oracle OTN](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
165+
1. Download "**OpenJDK 11 (LTS)**" from [AdoptOpenJDK](https://adoptopenjdk.net/releases.html?variant=openjdk11#x64_win) (choose **"Install JDK"**).
167166
- Run the installer, using all the defaults.
168167
2. Install Gradle:
169168
- Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
@@ -183,7 +182,7 @@ To get started, see "[Running the Tests](http://exercism.io/languages/java/tests
183182
*NOTE: these instructions are intended for experienced macOS users. Unless you specifically do not want to use a package manager, we highly recommend using the Homebrew-based installation instructions, [above](#macos).*
184183
185184
1. Install the JDK:
186-
1. Download "**Java Platform (JDK)**" from [Oracle OTN](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
185+
1. Download "**OpenJDK 11 (LTS)**" from [AdoptOpenJDK](https://adoptopenjdk.net/releases.html?variant=openjdk11#x64_mac) (choose **"Install JDK"**).
187186
2. Run the installer, using all the defaults.
188187
2. Install Gradle:
189188
1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
@@ -217,7 +216,7 @@ To get started, see "[Running the Tests](http://exercism.io/languages/java/tests
217216
*NOTE: these instructions are intended for experienced Linux users. Unless you specifically do not want to use a package manager, we highly recommend using the the installation instructions, [above](#linux).*
218217
219218
1. Install the JDK:
220-
1. Download "**Java Platform (JDK)**" from [Oracle OTN](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
219+
1. Choose your distribution and download "**OpenJDK 11 (LTS)**" from [AdoptOpenJDK](https://adoptopenjdk.net/releases.html?variant=openjdk11) (choose **"Install JDK"**).
221220
2. Run the installer, using all the defaults.
222221
2. Install Gradle:
223222
1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).

docs/LEARNING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Recommended learning resources
22

33
* [The Java Tutorials](https://docs.oracle.com/javase/tutorial/index.html)
4-
* [Java SE API Documentation](https://docs.oracle.com/javase/8/docs/api/index.html)
4+
* [Java SE API Documentation](https://docs.oracle.com/en/java/javase/11/docs/api/index.html)
55
* [Learn X in Y minutes](https://learnxinyminutes.com/docs/java/)
66
* [Free Programming Books - Java](https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md#java)
77
* [Intro to Java Programming](https://www.udacity.com/course/intro-to-java-programming--cs046)

docs/RESOURCES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
* [Stack Overflow](http://stackoverflow.com/questions/tagged/java).
44
* [The Java subreddit](https://www.reddit.com/r/java)
5-
* [Official Java documentation](https://docs.oracle.com/javase/8/)
5+
* [Official Java documentation](https://docs.oracle.com/en/java/javase/11/docs/api/index.html)
66
* [Java Programming Books](https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md#java)

0 commit comments

Comments
 (0)