Update dependencies
This commit is contained in:
1 parent
6e412d75ef
commit
938fa751ed
5 files changed
+21
-24
No files matched your search
+15
-18
@@ -1,8 +1,8 @@
|
||||
plugins {
|
||||
id("com.gradleup.shadow") version "8.3.2" // Import shadow API.
|
||||
java // Tell gradle this is a java project.
|
||||
id("io.github.goooler.shadow") version "8.1.8" // Import shadow plugin for dependency shading.
|
||||
eclipse // Import eclipse plugin for IDE integration.
|
||||
kotlin("jvm") version "1.9.23" // Import kotlin jvm plugin for kotlin/java integration.
|
||||
kotlin("jvm") version "2.0.20" // Import kotlin jvm plugin for kotlin/java integration.
|
||||
}
|
||||
|
||||
java {
|
||||
@@ -29,7 +29,7 @@ tasks.named<ProcessResources>("processResources") {
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
gradlePluginPortal()
|
||||
maven {
|
||||
url = uri("https://repo.purpurmc.org/snapshots") // Import the PurpurMC Maven Repository.
|
||||
}
|
||||
@@ -46,7 +46,7 @@ dependencies {
|
||||
compileOnly("io.github.miniplaceholders:miniplaceholders-api:2.2.3") // Import MiniPlaceholders API.
|
||||
compileOnly("com.github.Realizedd.Duels:duels-api:3.5.1") // Build the Duels API.
|
||||
|
||||
// implementation(project(":libs:Utilities-OG"))
|
||||
implementation(project(":libs:Utilities-OG"))
|
||||
implementation(project(":libs:GxUI-OG"))
|
||||
}
|
||||
|
||||
@@ -56,39 +56,36 @@ tasks.withType<AbstractArchiveTask>().configureEach { // Ensure reproducible bui
|
||||
}
|
||||
|
||||
tasks.shadowJar {
|
||||
archiveClassifier.set("") // Use empty string instead of null
|
||||
from("LICENSE") {
|
||||
into("/")
|
||||
}
|
||||
exclude("io.github.miniplaceholders.*") // Exclude the MiniPlaceholders package from being shadowed.
|
||||
minimize()
|
||||
}
|
||||
|
||||
tasks.jar {
|
||||
tasks.build {
|
||||
dependsOn(tasks.shadowJar)
|
||||
archiveClassifier.set("part")
|
||||
}
|
||||
|
||||
tasks.shadowJar {
|
||||
archiveClassifier.set("") // Use empty string instead of null
|
||||
from("LICENSE") { // Copies license file.
|
||||
into("/") // Sets destination for license file within the completed .jar.
|
||||
}
|
||||
}
|
||||
|
||||
tasks.jar {
|
||||
dependsOn("shadowJar") // Ensures shadowJar gets run.
|
||||
archiveClassifier.set("part")
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.compilerArgs.add("-parameters")
|
||||
options.encoding = "UTF-8" // Use UTF-8 encoding universally.
|
||||
options.compilerArgs.add("-Xlint:deprecation") // Triggers deprecation warning messages.
|
||||
options.encoding = "UTF-8"
|
||||
options.isFork = true
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(17) // Declare kotlin jvm toolchain version.
|
||||
jvmToolchain(17)
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(17) // Declare JDK version.
|
||||
vendor = JvmVendorSpec.GRAAL_VM // Declare JDK distribution.
|
||||
languageVersion = JavaLanguageVersion.of(17)
|
||||
vendor = JvmVendorSpec.GRAAL_VM
|
||||
}
|
||||
}
|
||||
+1
-1
Submodule libs/GxUI-OG updated: ec6120a73d...b006ff1070.
+1
-1
Submodule libs/Utilities-OG updated: a204510516...f973ab638b.
+2
-2
@@ -6,5 +6,5 @@ exec {
|
||||
commandLine("sh", "bootstrap.sh")
|
||||
}
|
||||
|
||||
// include("libs:Utilities-OG")
|
||||
include("libs:GxUI-OG")
|
||||
include("libs:Utilities-OG")
|
||||
include("libs:GxUI-OG")
|
||||
@@ -11,7 +11,7 @@ import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerGameModeChangeEvent;
|
||||
|
||||
import me.realized.duels.api.Duels;
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
import net.trueog.utilitiesog.UtilitiesOG;
|
||||
|
||||
public class Listeners implements Listener {
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Listeners implements Listener {
|
||||
if(player.getGameMode() == GameMode.SURVIVAL) {
|
||||
|
||||
// Inform the player that they will stop spectating the match.
|
||||
player.sendMessage(MiniMessage.miniMessage().deserialize("<gray>[<dark_green>True<red>OG<gray>] <gold>Out of bounds! Your Duel spectating session has ended."));
|
||||
UtilitiesOG.trueogMessage(player, "<gray>[<dark_green>True<red>OG<gray>] <gold>Out of bounds! Your Duel spectating session has ended.");
|
||||
|
||||
// Stop the player from spectating the match.
|
||||
api.getSpectateManager().stopSpectating(player);
|
||||
|
||||
Reference in new issue
Block a user