feat: target Fabric 1.21

dependabot/gradle/org.projectlombok-lombok-1.18.34 1.1.9
William 5 months ago
parent 5bc33ea055
commit 8c00cdefa3
No known key found for this signature in database

@ -15,23 +15,76 @@
**Uniform** is cross-platform wrapper for making Brigadier commands, based on [`BrigadierWrapper` by Tofaa2](https://github.com/Tofaa2/BrigadierWrapper/), which itself was inspired by [EmortalMC's `command-system`](https://github.com/emortalmc/command-system).
Uniform _currently_ targets the following platforms:
<p align="center">
| Platform | Artifact | Minecraft | Java |
|---------------|--------------------|:----------:|:------:|
| Common | `uniform-common` | - | \>`17` |
| Bukkit | `uniform-bukkit` | \>`1.17.1` | \>`17` |
| Paper | `uniform-paper` | \>`1.17.1` | \>`21` |
| Velocity | `uniform-velocity` | \>`3.3.0` | \>`17` |
| Fabric 1.20.1 | `uniform-fabric` | =`1.20.1` | \>`17` |
| Fabric 1.20.6 | `uniform-fabric` | =`1.20.6` | \>`21` |
</p>
* **Fabric:** Please note Uniform on Fabric requires [adventure-platform-fabric](https://docs.advntr.dev/platform/fabric.html) and the [Fabric API](https://fabricmc.net/) as dependencies. To target Fabric, use `uniform-fabric` as the artifact and `<uniform_version>+<minecraft_version>` as the version (e.g. `net.william278.uniform:uniform-fabric:1.0+1.20.1`).
* **Sponge**: Support for Sponge 10 is also planned in a future version.
## Compatibility
Versions are available on maven in the format `net.william278.uniform:ARTIFACT:VERSION`. See below for a table of supported platforms.
Note that Uniform versions omit the `v` prefix. Fabric versions are suffixed with the target Minecraft version (e.g. `1.1.9+1.21`) and also require Fabric API installed on the server.
<table align="center">
<thead>
<tr>
<th colspan="5">Uniform Version Table</th>
</tr>
<tr>
<th>Platform</th>
<th>Artifact</th>
<th>Platform ver.</th>
<th>Java ver.</th>
<th>Uniform ver.</th>
</tr>
</thead>
<tbody>
<tr>
<td>Common</td>
<td><code>uniform-common</code></td>
<td><code>N/A</code></td>
<td align="center"><code>17</code></td>
<td align="center"><img src="https://img.shields.io/github/v/tag/WiIIiam278/Uniform?color=000000&label=%20&style=flat"/></td>
</tr>
<tr>
<th colspan="5">Supported Platforms</th>
</tr>
<tr>
<td>Bukkit/Spigot</td>
<td><code>uniform-bukkit</code></td>
<td><code>mc 1.17.1</code></td>
<td rowspan="3" align="center"><code>17</code></td>
<td rowspan="5" align="center"><img src="https://img.shields.io/github/v/tag/WiIIiam278/Uniform?color=000000&label=%20&style=flat"/></td>
</tr>
<tr>
<td>Paper</td>
<td><code>uniform-paper</code></td>
<td><code>mc 1.17.1</code></td>
</tr>
<tr>
<td>Velocity</td>
<td><code>uniform-velocity</code></td>
<td><code>3.3.0</code></td>
</tr>
<tr>
<td rowspan="2">Fabric</td>
<td rowspan="2"><code>uniform-fabric</code></td>
<td>=<code>mc 1.20.1</code></td>
<td rowspan="2" align="center"><code>21</code></td>
</tr>
<tr>
<td>=<code>mc 1.21</code></td>
</tr>
<tr>
<th colspan="5">Formerly Supported Platforms</th>
</tr>
<tr>
<td>Fabric</td>
<td><code>uniform-fabric</code></td>
<td>=<code>mc 1.20.6</code></td>
<td align="center"><code>21</code></td>
<td align="center"><code>v1.1.8</code></td>
</tr>
</tbody>
</table>
Example: To target Uniform on Bukkit, the artifact is `net.william278.uniform:uniform-bukkit:1.1.9` (check that this version is up-to-date &ndash; make sure you target the latest available!).
## Setup
Uniform is available [on Maven](https://repo.william278.net/#/releases/net/william278/uniform/). You can browse the Javadocs [here](https://repo.william278.net/javadoc/releases/net/william278/uniform/latest).

@ -98,7 +98,7 @@ allprojects {
}
subprojects {
if (['fabric-1.20.1', 'fabric-1.20.6'].contains(project.name)) {
if (['fabric-1.20.1', 'fabric-1.21'].contains(project.name)) {
apply plugin: 'fabric-loom'
}
@ -196,12 +196,12 @@ subprojects {
}
}
if (['fabric-1.20.6'].contains(project.name)) {
if (['fabric-1.21'].contains(project.name)) {
publications {
mavenJavaFabric1_20_6(MavenPublication) {
mavenJavaFabric1_21(MavenPublication) {
groupId = 'net.william278.uniform'
artifactId = 'uniform-fabric'
version = "${rootProject.version}+1.20.6"
version = "${rootProject.version}+1.21"
artifact remapJar
artifact sourcesJar
artifact javadocJar

@ -5,11 +5,11 @@ plugins {
}
dependencies {
minecraft 'com.mojang:minecraft:1.20.6'
mappings 'net.fabricmc:yarn:1.20.6+build.3:v2'
minecraft 'com.mojang:minecraft:1.21'
mappings 'net.fabricmc:yarn:1.21+build.7:v2'
modCompileOnly 'net.fabricmc:fabric-loader:0.15.11'
modCompileOnly 'net.fabricmc.fabric-api:fabric-api:0.100.0+1.20.6'
modCompileOnly 'net.fabricmc.fabric-api:fabric-api:0.100.4+1.21'
modImplementation include('me.lucko:fabric-permissions-api:0.3.1')
modCompileOnly 'org.projectlombok:lombok:1.18.32'

@ -39,7 +39,7 @@ import java.util.Set;
import java.util.function.Function;
/**
* A class for registering commands with the Fabric (1.20.6) server
* A class for registering commands with the Fabric (1.21) server
*
* @since 1.0
*/

@ -3,6 +3,6 @@ javaVersion=17
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.daemon=true
library_version=1.1.8
library_version=1.1.9
library_archive=uniform
library_description=Cross-platform wrapper for making Brigadier commands, based on BrigadierWrapper by Tofaa2, itself inspired by emortalmcs command system.

@ -18,7 +18,7 @@ include(
// Fabric Server-Side Mods
'fabric-1.20.1',
'fabric-1.20.6',
'fabric-1.21',
// Example plugin
'example-plugin'

Loading…
Cancel
Save