From f4f3b3b329f88e7b264b3c6ef4b39e3f606c0120 Mon Sep 17 00:00:00 2001 From: William Date: Thu, 13 Jun 2024 23:50:31 +0100 Subject: [PATCH] feat: publish to fabric --- README.md | 4 ++-- build.gradle | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e92b801..71f107d 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ Please note Uniform on Fabric requires [adventure-platform-fabric](https://docs. | Common | `uniform-common` | - | >`17` | | Paper | `uniform-paper` | \>`1.20.6` | >`21` | | Velocity | `uniform-velocity` | \>`3.3.0` | >`17` | -| Fabric 1.20.1 | `uniform-fabric-1.20.1` | =`1.20.1` | >`17` | -| Fabric 1.20.6 | `uniform-fabric-1.20.6` | =`1.20.6` | >`21` | +| Fabric 1.20.1 | `uniform-fabric-1_20_1` | =`1.20.1` | >`17` | +| Fabric 1.20.6 | `uniform-fabric-1_20_6` | =`1.20.6` | >`21` | Uniform _plans_ to support the following platforms in the future: diff --git a/build.gradle b/build.gradle index f2c4bc0..9f864cd 100644 --- a/build.gradle +++ b/build.gradle @@ -154,6 +154,30 @@ subprojects { } } } + if (['fabric-1.20.1'].contains(project.name)) { + publications { + mavenJavaFabric1_20_1(MavenPublication) { + groupId = 'net.william278.uniform' + artifactId = 'uniform-fabric-1_20_1' + version = "$rootProject.version" + artifact shadowJar + artifact sourcesJar + artifact javadocJar + } + } + } + if (['fabric-1.20.6'].contains(project.name)) { + publications { + mavenJavaFabric1_20_6(MavenPublication) { + groupId = 'net.william278.uniform' + artifactId = 'uniform-fabric-1_20_6' + version = "$rootProject.version" + artifact shadowJar + artifact sourcesJar + artifact javadocJar + } + } + } }