Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update paperweight-userdev Gradle plugin reference #517

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions docs/paper/dev/getting-started/userdev.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,9 @@ plugins {

The latest version of `paperweight-userdev` supports dev bundles for Minecraft 1.17.1 and newer, so it's best practice to keep it up to date!
Only the latest version of `paperweight-userdev` is officially supported, and we will ask you to update first if you are having problems with old versions.

:::warning

In order to use userdev for 1.21.4, you have to update your userdev to a beta version. At the time of writing, the latest version that works for
1.21.4 is `2.0.0-beta.8`. You can find the latest version here: https://github.com/PaperMC/paperweight/releases.

Furthermore, from version `2.0.0` onwards, userdev requires you to use at least **Gradle 8.11.2** (Gradle 8.11 or below will not work). For more information on upgrading, check
out this site from the Gradle docs: https://docs.gradle.org/current/userguide/gradle_wrapper.html.

:::
Furthermore, if you are having issues with `paperweight-userdev`, it is suggested that you update your Gradle version to the latest version. For more information on upgrading Gradle,
check out [the Gradle wrapper documentation](https://docs.gradle.org/current/userguide/gradle_wrapper.html). If you keep experiencing issues, you should ask in the
[`#build-tooling-help`](https://discord.com/channels/289587909051416579/1078993196924813372) channel in our dedicated [Discord server](https://discord.gg/PaperMC)!

:::info[Snapshots]

Expand Down
5 changes: 1 addition & 4 deletions src/util/versionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ const createUserdevVersionsValue = (ttl: number = 5 * 60 * 1000): ExpiringValue<
r.json()
);

return json
.map((e) => e.name.substring(1))
.filter((e) => !e.includes("beta"))
.reverse();
return json.map((e) => e.name.substring(1)).reverse();
});
};

Expand Down
Loading