summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-09-28 11:26:47 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-09-28 11:26:47 +0200
commit54bccf522e169d5cba6489291217f3307ae71094 (patch)
tree50836d2e9beadf25f80e18dc159ec9aa47359213
parent6196895bfd0334052afa4fb91b00adb259a661b6 (diff)
build: Increase Java requirement to version 11
This change updates the Gradle configuration to target Java 11 (instead of Java 8) as the lowest denominator when building OpenDC. Since the project has not yet been adopted by (many) other applications, we should not restrict the project to such an old Java version.
-rw-r--r--.github/workflows/build.yml2
-rw-r--r--buildSrc/src/main/kotlin/Libs.kt2
-rw-r--r--docs/toolchain.md8
3 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ff1ee85f..9bd42254 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
- java: [8, 16]
+ java: [11, 16]
include:
- os: windows-latest
java: 16
diff --git a/buildSrc/src/main/kotlin/Libs.kt b/buildSrc/src/main/kotlin/Libs.kt
index 9567845a..f538b1ad 100644
--- a/buildSrc/src/main/kotlin/Libs.kt
+++ b/buildSrc/src/main/kotlin/Libs.kt
@@ -58,6 +58,6 @@ public class Libs(project: Project) {
/**
* The JVM version to target.
*/
- val jvmTarget = JavaVersion.VERSION_1_8
+ val jvmTarget = JavaVersion.VERSION_11
}
}
diff --git a/docs/toolchain.md b/docs/toolchain.md
index 4b029ebc..016c8201 100644
--- a/docs/toolchain.md
+++ b/docs/toolchain.md
@@ -12,13 +12,13 @@ Follow the steps below to get it all set up!
## Contents
1. [Installing Java](#1-installing-java)
-1. [Building and Developing](#2-building-and-developing)
- 1. [Setup with IntelliJ IDEA](#21-setup-with-intellij-idea)
- 1. [Setup with Command Line](#22-setup-with-command-line)
+2. [Building and Developing](#2-building-and-developing)
+3. [Setup with IntelliJ IDEA](#21-setup-with-intellij-idea)
+4. [Setup with Command Line](#22-setup-with-command-line)
## 1. Installing Java
-Kotlin requires a Java installation of version 8 or higher. Make sure to install
+OpenDC requires a Java installation of version 11 or higher. Make sure to install
the [JDK](https://www.oracle.com/technetwork/java/javase/downloads/index.html), not only the JRE (the JDK also includes
a JRE).