- 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.
36 lines
846 B
Groovy
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("")
|
|
}
|
|
} |