Skip to content

Commit

Permalink
Upgrade minimum Java version to Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
emichael committed Jan 19, 2024
1 parent 6879a4c commit 59ca4d6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '14', '17', '20', '21' ]
java: [ '17', '20', '21' ]
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ repository is an auto-built version of the handout.

## Contributing
The main tools for development are the same as the students' dependencies — Java
14 and Python 3. You will also need a few utilities such as `wget` to build with
17 and Python 3. You will also need a few utilities such as `wget` to build with
the provided `Makefile`; MacOS users will need `gtar` and `gcp` provided by the
`coreutils` Homebrew package.

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import com.github.jk1.license.render.TextReportRenderer

java {
sourceCompatibility = '14'
targetCompatibility = '14'
sourceCompatibility = '17'
targetCompatibility = '17'
}

sourceSets {
Expand Down
2 changes: 1 addition & 1 deletion handout-files/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
################################################################################
# Java compiler settings
################################################################################
JC = javac -source 14 -g
JC = javac -source 17 -g


################################################################################
Expand Down
6 changes: 3 additions & 3 deletions handout-files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ and/or failures that might lead to a violation of the invariants of the system.


## Getting Started
The only dependency for these labs is Java 14. Installing `openjdk-14-jdk` on
The only dependency for these labs is Java 17+. Installing `openjdk-17-jdk` on
most Linux distros should be sufficient.

We recommend using IntelliJ (a configuration directory is included in each
Expand All @@ -117,13 +117,13 @@ In order to run the tests from the terminal, you will need Python 3 and Make.

### Command-line Tools On Windows
We do not recommend using Windows. It is possible, however. You will need to
install `make`, Python 3, and Java 14. You can do this on native Windows.
install `make`, Python 3, and Java 17. You can do this on native Windows.
However, installing a Windows Subsystem for Linux will make installing and
running the command-line tools much easier (though it will potentially make
running the visual debugger more difficult depending on your version of Windows
and WSL; see below).

If you install WSL, you can install `python3`, `java14`, and `make` through
If you install WSL, you can install `python3`, `java17`, and `make` through
`apt-get`. You will still need to install Java directly on Windows, though, for
IntelliJ. (This will result in two installations of Java.)

Expand Down

0 comments on commit 59ca4d6

Please sign in to comment.