diff options
author | Alex <[email protected]> | 2021-10-21 11:04:17 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-21 11:04:17 +0200 |
commit | 5553432644a4606348d59e674b5ed1047ebdf25b (patch) | |
tree | 63ad84a0abdf8c6fe39aa032b68533f386adac8c | |
parent | 7a0886180f01d39c8ac3b8c2f46b8aeb6c615092 (diff) | |
download | Paper-5553432644a4606348d59e674b5ed1047ebdf25b.tar.gz Paper-5553432644a4606348d59e674b5ed1047ebdf25b.zip |
docs: Update gradle instructions for Java 16 (#6811) [ci skip]
Closes #6154.
-rw-r--r-- | README.md | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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)) } ``` |