mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 16:50:17 +01:00
docs: Update gradle instructions for Java 16 (#6811) [ci skip]
Closes #6154.
This commit is contained in:
parent
7a0886180f
commit
5553432644
1 changed files with 8 additions and 6 deletions
14
README.md
14
README.md
|
@ -45,17 +45,19 @@ How To (Plugin Developers)
|
||||||
**Or alternatively, with Gradle:**
|
**Or alternatively, with Gradle:**
|
||||||
|
|
||||||
* Repository:
|
* Repository:
|
||||||
```groovy
|
```kotlin
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url 'https://papermc.io/repo/repository/maven-public/'
|
url = uri("https://papermc.io/repo/repository/maven-public/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
|
||||||
* Artifact:
|
|
||||||
```groovy
|
|
||||||
dependencies {
|
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))
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue