Update gradle
All checks were successful
build / build (21) (push) Successful in 5m4s

This commit is contained in:
BitHeaven 2025-01-27 10:55:17 +05:00
parent c809da4ec4
commit 629eab8032

View File

@ -52,13 +52,19 @@ dependencies {
} }
processResources { processResources {
inputs.property "version", project.version // require dependencies to be the version compiled against or newer
inputs.property "loader_version", libs.versions.fabric.loader.get() Map<String, Object> properties = [
"version": version,
"minecraft_version": libs.versions.minecraft.get(),
"loader_version": libs.versions.fabric.loader.get(),
]
inputs.properties(properties)
filesMatching("fabric.mod.json") { filesMatching("fabric.mod.json") {
expand "version": project.version expand properties
expand "loader_version": libs.versions.fabric.loader.get()
} }
} }
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
@ -66,6 +72,10 @@ tasks.withType(JavaCompile).configureEach {
it.options.release = 21 it.options.release = 21
} }
tasks.withType(Jar) {
exclude('META-INF/maven/**')
}
java { java {
sourceCompatibility = JavaVersion.VERSION_21 sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21 targetCompatibility = JavaVersion.VERSION_21