docs: Update gradle instructions for Java 16 (#6811) [ci skip]

Closes #6154.
Dieser Commit ist enthalten in:
Alex 2021-10-21 11:04:17 +02:00 committet von GitHub
Ursprung 7a0886180f
Commit 5553432644
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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))
}
```