From 22cadaebe13dbc8b6206466d989b93abe0f46ba0 Mon Sep 17 00:00:00 2001 From: Jordy <36630987+gjorgdy@users.noreply.github.com> Date: Sun, 10 May 2026 21:49:22 +0200 Subject: [PATCH 1/9] Change adventure version to 4.25.0 Downgraded adventure version from 5.0.0-SNAPSHOT to 4.25.0. --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 03dcaf507..abae57819 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -17,7 +17,7 @@ run-paper="3.0.2" # https://github.com/jpenilla/run-task indra-git="4.0.0" # https://github.com/KyoriPowered/indra shadowJar="8.3.9" # https://github.com/GradleUp/shadow -adventure="5.0.0-SNAPSHOT" # https://github.com/KyoriPowered/adventure +adventure="4.25.0" # https://github.com/KyoriPowered/adventure adventureBukkit="4.4.1" # https://github.com/KyoriPowered/adventure-platform adventureFabric="6.9.0" # https://github.com/KyoriPowered/adventure-platform-fabric From 4978356f6e0cfd6d3482f92552e3726f66031092 Mon Sep 17 00:00:00 2001 From: Gjorgdy Date: Fri, 15 May 2026 21:39:27 +0200 Subject: [PATCH 2/9] Added a hue and saturation filter to icon markers --- .../pl3x/map/core/markers/marker/Icon.java | 47 +++++++++++++++++++ webmap/src/marker/Icon.ts | 9 ++++ webmap/src/scss/_filter.scss | 20 ++++++++ webmap/src/scss/styles.scss | 1 + 4 files changed, 77 insertions(+) create mode 100644 webmap/src/scss/_filter.scss diff --git a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java index d374df88d..dbc141132 100644 --- a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java +++ b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java @@ -60,6 +60,9 @@ public class Icon extends Marker { private Vector shadowSize; private Vector shadowAnchor; + private int hueRotation = 180; + private int saturation = 200; + private Icon(String key) { super("icon", key); } @@ -560,6 +563,46 @@ public Icon setShadowAnchor(@Nullable Vector shadowAnchor) { return this; } + /** + * Get the hue rotation to be applied to the icon image, in degrees, clockwise. + * + * @return hue rotation + */ + public int getHueRotation() { + return this.hueRotation; + } + + /** + * Set the hue rotation to be applied to the icon image, in degrees, clockwise. + * + * @param hueRotation new hue rotation + * @return this icon + */ + public Icon setHueRotation(int hueRotation) { + this.hueRotation = hueRotation; + return this; + } + + /** + * Get the saturation to be applied to the icon image, in percentages between 0 and 200. + * + * @return saturation + */ + public int getSaturation() { + return this.saturation; + } + + /** + * Set the saturation to be applied to the icon image, in percentages between 0 and 200. + * + * @param saturation new saturation + * @return this icon + */ + public Icon getSaturation(int saturation) { + this.saturation = saturation; + return this; + } + @Override public JsonObject toJson() { JsonObjectWrapper wrapper = new JsonObjectWrapper(); @@ -576,6 +619,8 @@ public JsonObject toJson() { wrapper.addProperty("rotationAngle", getRotationAngle()); wrapper.addProperty("rotationOrigin", getRotationOrigin()); wrapper.addProperty("pane", getPane()); + wrapper.addProperty("hueRotation", getHueRotation()); + wrapper.addProperty("saturation", getSaturation()); return wrapper.getJsonObject(); } @@ -677,6 +722,8 @@ public String toString() { + ",shadowAnchor=" + getShadowAnchor() + ",pane=" + getPane() + ",options=" + getOptions() + + ",hueRotation=" + getHueRotation() + + ",saturation=" + getSaturation() + "}"; } } diff --git a/webmap/src/marker/Icon.ts b/webmap/src/marker/Icon.ts index 4e3cbdb21..20042b576 100644 --- a/webmap/src/marker/Icon.ts +++ b/webmap/src/marker/Icon.ts @@ -19,6 +19,9 @@ interface IconOptions extends L.MarkerOptions { rotationAngle?: number; rotationOrigin?: string; pane: string; + className: string; + hueRotation: number; + saturation: number; } export class Icon extends Marker { @@ -39,6 +42,11 @@ export class Icon extends Marker { if (isset(data.shadowSize)) props = {...props, shadowSize: [data.shadowSize!.x, data.shadowSize!.z]}; if (isset(data.shadowAnchor)) props = {...props, shadowAnchor: [data.shadowAnchor!.x, data.shadowAnchor!.z]}; + let filterClasses = ""; + if (isset(data.hueRotation)) filterClasses += ` hue-${Math.round(data.hueRotation / 10) * 10}`; + if (isset(data.saturation)) filterClasses += ` sat-${Math.round(data.saturation / 10) * 10}`; + if(filterClasses.length > 0) props = {...props, className: "dynamic-filter " + filterClasses.trim()}; + const tooltipOffset: L.PointExpression | undefined = type.options?.tooltip?.properties?.offset; const popupOffset: L.PointExpression | undefined = type.options?.popup?.properties?.offset; @@ -73,6 +81,7 @@ export class Icon extends Marker { const iconOptions: IconOptions = icon.options as IconOptions; iconOptions.rotationAngle = data.rotationAngle; iconOptions.rotationOrigin = data.rotationOrigin; + iconOptions.hueRotation = data.hueRotation; if (options?.tooltip?.content) { icon.setTooltipContent(options?.tooltip?.content); } diff --git a/webmap/src/scss/_filter.scss b/webmap/src/scss/_filter.scss new file mode 100644 index 000000000..9b2b9b7b8 --- /dev/null +++ b/webmap/src/scss/_filter.scss @@ -0,0 +1,20 @@ +.dynamic-filter { + --hue: 0deg; + --sat: 100%; + + filter: hue-rotate(var(--hue, 0deg)) Saturate(var(--sat, 100%)); +} + +@for $i from 0 through 20 { + $percentage: $i * 10; + .sat-#{$percentage} { + --sat: #{$percentage}; + } +} + +@for $i from 0 through 36 { + $degrees: $i * 10; + .hue-#{$degrees} { + --hue: #{$degrees}deg; + } +} \ No newline at end of file diff --git a/webmap/src/scss/styles.scss b/webmap/src/scss/styles.scss index ae47f571f..241ce66f8 100644 --- a/webmap/src/scss/styles.scss +++ b/webmap/src/scss/styles.scss @@ -2,6 +2,7 @@ @import 'placeholders'; @import 'leaflet'; @import 'sidebar'; +@import 'filter'; :root { color-scheme: dark; From 5767a14e4a33762f35ce03479f67396b8ae9d305 Mon Sep 17 00:00:00 2001 From: Gjorgdy Date: Fri, 15 May 2026 21:47:12 +0200 Subject: [PATCH 3/9] Added an opacity value to icon markers --- .../pl3x/map/core/markers/marker/Icon.java | 29 +++++++++++++++++-- webmap/src/marker/Icon.ts | 2 ++ webmap/src/scss/_filter.scss | 7 +++++ 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java index dbc141132..0164c5f11 100644 --- a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java +++ b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java @@ -60,8 +60,9 @@ public class Icon extends Marker { private Vector shadowSize; private Vector shadowAnchor; - private int hueRotation = 180; - private int saturation = 200; + private int hueRotation; + private int saturation; + private int opacity; private Icon(String key) { super("icon", key); @@ -598,11 +599,31 @@ public int getSaturation() { * @param saturation new saturation * @return this icon */ - public Icon getSaturation(int saturation) { + public Icon setSaturation(int saturation) { this.saturation = saturation; return this; } + /** + * Get the opacity of to the icon image, in percentages between 0 and 100. + * + * @return opacity + */ + public int getOpacity() { + return this.opacity; + } + + /** + * Set the opacity of to the icon image, in percentages between 0 and 100. + * + * @param opacity new opacity + * @return this icon + */ + public Icon setOpacity(int opacity) { + this.opacity = opacity; + return this; + } + @Override public JsonObject toJson() { JsonObjectWrapper wrapper = new JsonObjectWrapper(); @@ -621,6 +642,7 @@ public JsonObject toJson() { wrapper.addProperty("pane", getPane()); wrapper.addProperty("hueRotation", getHueRotation()); wrapper.addProperty("saturation", getSaturation()); + wrapper.addProperty("opacity", getOpacity()); return wrapper.getJsonObject(); } @@ -724,6 +746,7 @@ public String toString() { + ",options=" + getOptions() + ",hueRotation=" + getHueRotation() + ",saturation=" + getSaturation() + + ",opacity=" + getOpacity() + "}"; } } diff --git a/webmap/src/marker/Icon.ts b/webmap/src/marker/Icon.ts index 20042b576..7f7d0acaf 100644 --- a/webmap/src/marker/Icon.ts +++ b/webmap/src/marker/Icon.ts @@ -22,6 +22,7 @@ interface IconOptions extends L.MarkerOptions { className: string; hueRotation: number; saturation: number; + opacity: number; } export class Icon extends Marker { @@ -45,6 +46,7 @@ export class Icon extends Marker { let filterClasses = ""; if (isset(data.hueRotation)) filterClasses += ` hue-${Math.round(data.hueRotation / 10) * 10}`; if (isset(data.saturation)) filterClasses += ` sat-${Math.round(data.saturation / 10) * 10}`; + if (isset(data.opacity)) filterClasses += ` opacity-${Math.round(data.opacity / 5) * 5}`; if(filterClasses.length > 0) props = {...props, className: "dynamic-filter " + filterClasses.trim()}; const tooltipOffset: L.PointExpression | undefined = type.options?.tooltip?.properties?.offset; diff --git a/webmap/src/scss/_filter.scss b/webmap/src/scss/_filter.scss index 9b2b9b7b8..a87bf1b82 100644 --- a/webmap/src/scss/_filter.scss +++ b/webmap/src/scss/_filter.scss @@ -17,4 +17,11 @@ .hue-#{$degrees} { --hue: #{$degrees}deg; } +} + +@for $i from 0 through 20 { + $percentage: $i * 5; + .opacity-#{$percentage} { + opacity: #{$percentage / 100}; + } } \ No newline at end of file From 1e3db35d3f4d65467984d5c06cdede0fecf17b75 Mon Sep 17 00:00:00 2001 From: Gjorgdy Date: Fri, 15 May 2026 21:53:36 +0200 Subject: [PATCH 4/9] Fixed default values --- .../main/java/net/pl3x/map/core/markers/marker/Icon.java | 6 +++--- webmap/src/scss/_filter.scss | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java index 0164c5f11..e5903ad16 100644 --- a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java +++ b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java @@ -60,9 +60,9 @@ public class Icon extends Marker { private Vector shadowSize; private Vector shadowAnchor; - private int hueRotation; - private int saturation; - private int opacity; + private int hueRotation = 0; + private int saturation = 100; + private int opacity = 100; private Icon(String key) { super("icon", key); diff --git a/webmap/src/scss/_filter.scss b/webmap/src/scss/_filter.scss index a87bf1b82..713dc091f 100644 --- a/webmap/src/scss/_filter.scss +++ b/webmap/src/scss/_filter.scss @@ -8,7 +8,7 @@ @for $i from 0 through 20 { $percentage: $i * 10; .sat-#{$percentage} { - --sat: #{$percentage}; + --sat: percentage(#{$percentage}); } } From 660d3798ee86031026dae7712e39218174ebb789 Mon Sep 17 00:00:00 2001 From: Gjorgdy Date: Sat, 16 May 2026 15:55:44 +0200 Subject: [PATCH 5/9] Added a brightness value --- build.gradle.kts | 30 +++++++++++++++++++ .../pl3x/map/core/markers/marker/Icon.java | 23 ++++++++++++++ webmap/src/marker/Icon.ts | 4 ++- webmap/src/scss/_filter.scss | 18 ++++++----- 4 files changed, 67 insertions(+), 8 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 25321dfd6..62c4a70ba 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,8 +1,15 @@ +import java.util.Locale +import java.util.Locale.getDefault + plugins { id("java-library") alias(libs.plugins.minotaur) + `maven-publish` } +// ensure a group so mavenLocal has a sensible path +project.group = "net.pl3x.map" + val buildNum = System.getenv("NEXT_BUILD_NUMBER") ?: "SNAPSHOT" project.version = "${libs.versions.minecraft.get()}-$buildNum" @@ -71,3 +78,26 @@ modrinth { //) } } + +// Publish the assembled root project jar (the same file uploaded via modrinth) +publishing { + publications { + // create a publication that uses the built root jar + create("mavenJava") { + groupId = project.group.toString() + artifactId = rootProject.name.lowercase(getDefault()) + version = project.version.toString() + + // point to the fat/assembled jar that the root build produces + val assembledRootJar = rootProject.layout.buildDirectory.file("libs/${rootProject.name}-${project.version}.jar") + artifact(assembledRootJar) { + builtBy(tasks.named("jar")) + } + } + } + + repositories { + mavenLocal() + } +} + diff --git a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java index e5903ad16..b30dea9dc 100644 --- a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java +++ b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java @@ -62,6 +62,7 @@ public class Icon extends Marker { private int hueRotation = 0; private int saturation = 100; + private int brightness = 100; private int opacity = 100; private Icon(String key) { @@ -604,6 +605,26 @@ public Icon setSaturation(int saturation) { return this; } + /** + * Get the brightness to be applied to the icon image, in percentages between 0 and 200. + * + * @return brightness + */ + public int getBrightness() { + return this.brightness; + } + + /** + * Set the brightness to be applied to the icon image, in percentages between 0 and 200. + * + * @param brightness new brightness + * @return this icon + */ + public Icon setBrightness(int brightness) { + this.brightness = brightness; + return this; + } + /** * Get the opacity of to the icon image, in percentages between 0 and 100. * @@ -642,6 +663,7 @@ public JsonObject toJson() { wrapper.addProperty("pane", getPane()); wrapper.addProperty("hueRotation", getHueRotation()); wrapper.addProperty("saturation", getSaturation()); + wrapper.addProperty("brightness", getBrightness()); wrapper.addProperty("opacity", getOpacity()); return wrapper.getJsonObject(); } @@ -746,6 +768,7 @@ public String toString() { + ",options=" + getOptions() + ",hueRotation=" + getHueRotation() + ",saturation=" + getSaturation() + + ",brightness=" + getBrightness() + ",opacity=" + getOpacity() + "}"; } diff --git a/webmap/src/marker/Icon.ts b/webmap/src/marker/Icon.ts index 7f7d0acaf..34a8bb755 100644 --- a/webmap/src/marker/Icon.ts +++ b/webmap/src/marker/Icon.ts @@ -22,6 +22,7 @@ interface IconOptions extends L.MarkerOptions { className: string; hueRotation: number; saturation: number; + brightness: number; opacity: number; } @@ -44,8 +45,9 @@ export class Icon extends Marker { if (isset(data.shadowAnchor)) props = {...props, shadowAnchor: [data.shadowAnchor!.x, data.shadowAnchor!.z]}; let filterClasses = ""; - if (isset(data.hueRotation)) filterClasses += ` hue-${Math.round(data.hueRotation / 10) * 10}`; + if (isset(data.hueRotation)) filterClasses += ` hue-${Math.round(data.hueRotation / 5) * 5}`; if (isset(data.saturation)) filterClasses += ` sat-${Math.round(data.saturation / 10) * 10}`; + if (isset(data.brightness)) filterClasses += ` bright-${Math.round(data.brightness / 10) * 10}`; if (isset(data.opacity)) filterClasses += ` opacity-${Math.round(data.opacity / 5) * 5}`; if(filterClasses.length > 0) props = {...props, className: "dynamic-filter " + filterClasses.trim()}; diff --git a/webmap/src/scss/_filter.scss b/webmap/src/scss/_filter.scss index 713dc091f..fb5cd7418 100644 --- a/webmap/src/scss/_filter.scss +++ b/webmap/src/scss/_filter.scss @@ -1,24 +1,28 @@ .dynamic-filter { - --hue: 0deg; - --sat: 100%; - - filter: hue-rotate(var(--hue, 0deg)) Saturate(var(--sat, 100%)); + filter: hue-rotate(var(--hue,)) Saturate(var(--sat,)) Brightness(var(--bright,)); } @for $i from 0 through 20 { $percentage: $i * 10; .sat-#{$percentage} { - --sat: percentage(#{$percentage}); + --sat: #{$percentage / 100}; } } -@for $i from 0 through 36 { - $degrees: $i * 10; +@for $i from 0 through 72 { + $degrees: $i * 5; .hue-#{$degrees} { --hue: #{$degrees}deg; } } +@for $i from 0 through 40 { + $percentage: $i * 10; + .bright-#{$percentage} { + --bright: #{$percentage / 100}; + } +} + @for $i from 0 through 20 { $percentage: $i * 5; .opacity-#{$percentage} { From 32a99223671c13c980e5a2261f03de45249831ad Mon Sep 17 00:00:00 2001 From: Gjorgdy Date: Thu, 21 May 2026 11:25:54 +0200 Subject: [PATCH 6/9] Missing newline --- webmap/src/scss/_filter.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webmap/src/scss/_filter.scss b/webmap/src/scss/_filter.scss index fb5cd7418..ab282dfc0 100644 --- a/webmap/src/scss/_filter.scss +++ b/webmap/src/scss/_filter.scss @@ -28,4 +28,4 @@ .opacity-#{$percentage} { opacity: #{$percentage / 100}; } -} \ No newline at end of file +} From 1f60b8f89b68003a13aa4a1aed86dca2ef0d958f Mon Sep 17 00:00:00 2001 From: Gjorgdy Date: Thu, 21 May 2026 11:42:51 +0200 Subject: [PATCH 7/9] Changed filter values to doubles --- .../pl3x/map/core/markers/marker/Icon.java | 40 +++++++++---------- webmap/src/marker/Icon.ts | 6 +-- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java index b30dea9dc..a13e3e631 100644 --- a/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java +++ b/core/src/main/java/net/pl3x/map/core/markers/marker/Icon.java @@ -60,10 +60,10 @@ public class Icon extends Marker { private Vector shadowSize; private Vector shadowAnchor; - private int hueRotation = 0; - private int saturation = 100; - private int brightness = 100; - private int opacity = 100; + private double hueRotation = 0.0; + private double saturation = 1.0; + private double brightness = 1.0; + private double opacity = 1.0; private Icon(String key) { super("icon", key); @@ -566,81 +566,81 @@ public Icon setShadowAnchor(@Nullable Vector shadowAnchor) { } /** - * Get the hue rotation to be applied to the icon image, in degrees, clockwise. + * Get the hue rotation to be applied to the icon image, in degrees between 0 and 360. * * @return hue rotation */ - public int getHueRotation() { + public double getHueRotation() { return this.hueRotation; } /** - * Set the hue rotation to be applied to the icon image, in degrees, clockwise. + * Set the hue rotation to be applied to the icon image, in degrees between 0 and 360. * * @param hueRotation new hue rotation * @return this icon */ - public Icon setHueRotation(int hueRotation) { + public Icon setHueRotation(double hueRotation) { this.hueRotation = hueRotation; return this; } /** - * Get the saturation to be applied to the icon image, in percentages between 0 and 200. + * Get the saturation filter to be applied to the icon image, as a double between 0 and 2. * * @return saturation */ - public int getSaturation() { + public double getSaturation() { return this.saturation; } /** - * Set the saturation to be applied to the icon image, in percentages between 0 and 200. + * Set the saturation filter to be applied to the icon image, as a double between 0 and 2. * * @param saturation new saturation * @return this icon */ - public Icon setSaturation(int saturation) { + public Icon setSaturation(double saturation) { this.saturation = saturation; return this; } /** - * Get the brightness to be applied to the icon image, in percentages between 0 and 200. + * Get the brightness filter to be applied to the icon image, as a double between 0 and 2. * * @return brightness */ - public int getBrightness() { + public double getBrightness() { return this.brightness; } /** - * Set the brightness to be applied to the icon image, in percentages between 0 and 200. + * Set the brightness filter to be applied to the icon image, as a double between 0 and 2. * * @param brightness new brightness * @return this icon */ - public Icon setBrightness(int brightness) { + public Icon setBrightness(double brightness) { this.brightness = brightness; return this; } /** - * Get the opacity of to the icon image, in percentages between 0 and 100. + * Get the opacity of the icon image, as a double between 0 and 1. * * @return opacity */ - public int getOpacity() { + public double getOpacity() { return this.opacity; } /** - * Set the opacity of to the icon image, in percentages between 0 and 100. + * Set the opacity of the icon image, as a double between 0 and 1. * * @param opacity new opacity * @return this icon */ - public Icon setOpacity(int opacity) { + public Icon setOpacity(double opacity) { this.opacity = opacity; return this; } diff --git a/webmap/src/marker/Icon.ts b/webmap/src/marker/Icon.ts index 34a8bb755..b84164b65 100644 --- a/webmap/src/marker/Icon.ts +++ b/webmap/src/marker/Icon.ts @@ -46,9 +46,9 @@ export class Icon extends Marker { let filterClasses = ""; if (isset(data.hueRotation)) filterClasses += ` hue-${Math.round(data.hueRotation / 5) * 5}`; - if (isset(data.saturation)) filterClasses += ` sat-${Math.round(data.saturation / 10) * 10}`; - if (isset(data.brightness)) filterClasses += ` bright-${Math.round(data.brightness / 10) * 10}`; - if (isset(data.opacity)) filterClasses += ` opacity-${Math.round(data.opacity / 5) * 5}`; + if (isset(data.saturation)) filterClasses += ` sat-${Math.round(data.saturation * 10) * 10}`; + if (isset(data.brightness)) filterClasses += ` bright-${Math.round(data.brightness * 10) * 10}`; + if (isset(data.opacity)) filterClasses += ` opacity-${Math.round(data.opacity * 5) * 20}`; if(filterClasses.length > 0) props = {...props, className: "dynamic-filter " + filterClasses.trim()}; const tooltipOffset: L.PointExpression | undefined = type.options?.tooltip?.properties?.offset; From bb7180912c6de25d9671d7351a08ec7565f72f32 Mon Sep 17 00:00:00 2001 From: Gjorgdy Date: Thu, 21 May 2026 11:43:19 +0200 Subject: [PATCH 8/9] Removed build to local maven --- build.gradle.kts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 62c4a70ba..1344ad81f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -78,26 +78,3 @@ modrinth { //) } } - -// Publish the assembled root project jar (the same file uploaded via modrinth) -publishing { - publications { - // create a publication that uses the built root jar - create("mavenJava") { - groupId = project.group.toString() - artifactId = rootProject.name.lowercase(getDefault()) - version = project.version.toString() - - // point to the fat/assembled jar that the root build produces - val assembledRootJar = rootProject.layout.buildDirectory.file("libs/${rootProject.name}-${project.version}.jar") - artifact(assembledRootJar) { - builtBy(tasks.named("jar")) - } - } - } - - repositories { - mavenLocal() - } -} - From ed9bd7165e2675fa035c104c81f99515af13fc8b Mon Sep 17 00:00:00 2001 From: Gjorgdy Date: Thu, 21 May 2026 11:44:51 +0200 Subject: [PATCH 9/9] Removed other build.gradle changes --- build.gradle.kts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1344ad81f..25321dfd6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,15 +1,8 @@ -import java.util.Locale -import java.util.Locale.getDefault - plugins { id("java-library") alias(libs.plugins.minotaur) - `maven-publish` } -// ensure a group so mavenLocal has a sensible path -project.group = "net.pl3x.map" - val buildNum = System.getenv("NEXT_BUILD_NUMBER") ?: "SNAPSHOT" project.version = "${libs.versions.minecraft.get()}-$buildNum"