From 54bccf522e169d5cba6489291217f3307ae71094 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 28 Sep 2021 11:26:47 +0200 Subject: 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. --- .github/workflows/build.yml | 2 +- buildSrc/src/main/kotlin/Libs.kt | 2 +- docs/toolchain.md | 8 ++++---- 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). -- cgit v1.2.3