Files
world-museum/build.gradle
Elias Müller d80b7deb53 Update dependencies and improve various functionalities
- Bump Gradle to 8.5 and adjust related configs.
- Upgrade from JDK 17 to JDK 21.
- Replace deprecated methods with modern equivalents (`withDisplayName` -> `withCustomName`).
- Refactor and simplify event handling (e.g., PlayerLoginEvent -> AsyncPlayerConfigurationEvent).
- Fix minor issues with player and inventory handling.
- Improve Gradle startup scripts for better compatibility.
- Transition plugin handling from deprecated to current class references.
- General cleanup and code modernization.
2025-12-21 17:31:48 +01:00

36 lines
846 B
Groovy

plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "7.1.0"
}
group = 'eu.mhsl.craftattack.worldmuseum'
version = '1.0'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'net.minestom:minestom-snapshots:fd51c8d17a'
implementation 'org.jctools:jctools-core:4.0.1'
implementation 'com.google.guava:guava:31.0.1-jre'
}
tasks {
jar {
manifest {
attributes 'Main-Class': 'eu.mhsl.craftattack.worldmuseum.Main'
attributes 'Multi-Release': true
}
duplicatesStrategy = 'exclude'
from configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
build {
dependsOn(shadowJar)
}
shadowJar {
mergeServiceFiles()
archiveClassifier.set("")
}
}