From 5553432644a4606348d59e674b5ed1047ebdf25b Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 21 Oct 2021 11:04:17 +0200 Subject: [PATCH] docs: Update gradle instructions for Java 16 (#6811) [ci skip] Closes #6154. --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 19958751d5..e731bf26e5 100644 --- a/README.md +++ b/README.md @@ -45,17 +45,19 @@ How To (Plugin Developers) **Or alternatively, with Gradle:** * Repository: -```groovy +```kotlin repositories { maven { - url 'https://papermc.io/repo/repository/maven-public/' + url = uri("https://papermc.io/repo/repository/maven-public/") } } -``` - * Artifact: -```groovy + dependencies { - compileOnly 'io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT' + compileOnly("io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT") +} + +java { + toolchain.languageVersion.set(JavaLanguageVersion.of(16)) } ```