This commit is contained in:
NotAlexNoyle committed 2026-09-16 10:45:35 -04:00
1 parent e3f08f7420
commit 6e165d05d1
2 files changed
+21 -5

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
**1.7.4**
- Added offline player data API backed by Purpur internals via paperweight: `getInventoryData(UUID)`, `setInventoryData(UUID, ItemStack[])`, and `getHeldItemSlot(UUID)`.
- Removed FastOfflinePlayer and its PostgreSQL / jasync dependency, along with the `postgres*` config keys.
- Gradle now outputs a single reobfuscated `Utilities-OG-<version>.jar` in `build/libs`; intermediate jars moved to `build/intermediates`.
**1.7.3**
- NoFlippy now covers fence gates as well as trapdoors under the `can-flippy` flag.
+16 -5
View File
@@ -26,7 +26,7 @@ kotlin { jvmToolchain(17) }
/* ----------------------------- Metadata ------------------------------ */
group = "net.trueog.utilities-og" // Declare bundle identifier.
version = "1.7.3" // Declare plugin version (will be in .jar).
version = "1.7.4" // Declare plugin version (will be in .jar).
val apiVersion = "1.19" // Declare minecraft server target version.
@@ -71,17 +71,28 @@ tasks.withType<AbstractArchiveTask>().configureEach { // Ensure reproducible .ja
}
/* ----------------------------- Shadow -------------------------------- */
val intermediateJars = layout.buildDirectory.dir("intermediates") // Keep unfinished jars out of build/libs.
tasks.jar {
archiveClassifier.set("part") // Applies to root jarfile only.
destinationDirectory.set(intermediateJars)
}
tasks.shadowJar {
exclude("io.github.miniplaceholders.*") // Exclude the MiniPlaceholders package from being shadowed.
archiveClassifier.set("") // Use empty string instead of null.
archiveClassifier.set("dev") // Mojang-mapped shaded jar, consumed by reobfJar.
destinationDirectory.set(intermediateJars)
minimize()
}
tasks.jar { archiveClassifier.set("part") } // Applies to root jarfile only.
/* --------------------------- Reobfuscation --------------------------- */
tasks.reobfJar {
outputJar.set(layout.buildDirectory.file("libs/${project.name}-${project.version}.jar")) // Only jar in build/libs.
}
tasks.assemble { dependsOn(tasks.reobfJar) }
tasks.assemble { dependsOn(tasks.reobfJar) } // Assemble depends on the reobfuscated jar.
tasks.build { dependsOn(tasks.spotlessApply, tasks.shadowJar) } // Build depends on spotless and shadow.
tasks.build { dependsOn(tasks.spotlessApply, tasks.reobfJar) } // Build depends on spotless and reobf.
/* --------------------------- Javac opts ------------------------------- */
tasks.withType<JavaCompile>().configureEach {