From d89e6b95944127c2caac343ed9363d857601c027 Mon Sep 17 00:00:00 2001 From: sean Date: Sun, 9 Jun 2024 14:57:08 +0200 Subject: [PATCH] Bump minimum Java version to 17 --- README.md | 6 +++--- build.gradle.kts | 6 +++--- spigot/build.gradle.kts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4696c352..d117d2bc 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ commands, so that any player can easily understand how to use all of its feature To use this plugin, you can simply download it from [CurseForge](https://www.curseforge.com/minecraft/bukkit-plugins/blockprot), [Modrinth](https://modrinth.com/plugin/blockprot) or [SpigotMC](https://www.spigotmc.org/resources/blockprot.87829/) and place it in your `plugins` directory. You do not have to install anything else and any recent -version will work with 1.14, 1.15, 1.16, 1.17 and 1.18. It runs on any Spigot and any fork thereof -and does **not** run on CraftBukkit. +version will work with any recent Minecraft version, as long as you're running Java 17 or higher. +It runs on any Spigot and any fork thereof and does **not** run on CraftBukkit. To get the latest updates the quickest, you can "watch" or "star" this repository or frequently check the [Release tab](https://github.com/spnda/BlockProt/releases). Alternatively, it is also @@ -35,7 +35,7 @@ Spigot, which will also notify you as soon as new builds get released. --- -If you want to build the plugin from source yourself, you can simply do so by installing JDK 16 +If you want to build the plugin from source yourself, you can simply do so by installing JDK 17 or newer, cloning this repository and running `./gradlew build` in the main directory. ## Translating diff --git a/build.gradle.kts b/build.gradle.kts index b9c60759..fb29cb9b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -47,9 +47,9 @@ allprojects { } tasks.compileJava { - options.release.set(16) - java.sourceCompatibility = JavaVersion.VERSION_16 - java.targetCompatibility = JavaVersion.VERSION_16 + options.release.set(17) + java.sourceCompatibility = JavaVersion.VERSION_17 + java.targetCompatibility = JavaVersion.VERSION_17 } ext["gitBranchName"] = gitBranchName() diff --git a/spigot/build.gradle.kts b/spigot/build.gradle.kts index 385f56c9..47f6fae8 100644 --- a/spigot/build.gradle.kts +++ b/spigot/build.gradle.kts @@ -86,7 +86,7 @@ tasks.processResources { tasks.javadoc { options { - source = "16" + source = "17" encoding = "UTF-8" memberLevel = JavadocMemberLevel.PACKAGE (this as CoreJavadocOptions).addStringOption("Xdoclint:none", "-quiet")