Skip to content

Commit

Permalink
chore: Remove hardcoded userdev version (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
Machine-Maker authored Sep 2, 2024
1 parent cb61a88 commit ac0f87c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/paper/dev/getting-started/userdev.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@ See [here](#1205-and-beyond) for more details.

## Adding the plugin
Add the plugin to your `build.gradle.kts` file.
```kotlin

:::info

You can find the latest release of **paperweight-userdev** on the [Gradle Plugin
Portal](https://plugins.gradle.org/plugin/io.papermc.paperweight.userdev).

:::

```kotlin title="build.gradle.kts"
plugins {
id("io.papermc.paperweight.userdev") version "1.7.1" // Check for new versions at https://plugins.gradle.org/plugin/io.papermc.paperweight.userdev
id("io.papermc.paperweight.userdev") version "<insert_latest_version>"
}
```

Expand All @@ -48,9 +56,8 @@ Only the latest version of `paperweight-userdev` is officially supported, and we

:::info[Snapshots]

**paperweight-userdev** releases are available through the [Gradle Plugin Portal](https://plugins.gradle.org/plugin/io.papermc.paperweight.userdev), but if you
want to use SNAPSHOT versions, you must add Paper's Maven repository to `settings.gradle.kts` with:
```kotlin
**paperweight-userdev** SNAPSHOT (pre-release) versions are only available through Paper's Maven repository.
```kotlin title="settings.gradle.kts"
pluginManagement {
repositories {
gradlePluginPortal()
Expand All @@ -66,7 +73,7 @@ If you try to load your Gradle project now, you will receive an error saying you
a dev bundle dependency. You can do that by adding to your `dependencies` block in your `build.gradle.kts`
file.

<VersionFormattedCode language={"kotlin"}>
<VersionFormattedCode language={"kotlin"} title={"build.gradle.kts"}>
```
dependencies {
// Other Dependencies
Expand Down

0 comments on commit ac0f87c

Please sign in to comment.