chipmunkmod/build.gradle
amyavi a9b365127f
build: cleanup buildscripts a lot
build: bump gradle; fabric-loom
fix: don't suggest another-mod
2024-12-27 22:44:15 -03:00

53 lines
1.7 KiB
Groovy

plugins {
id 'fabric-loom' version '1.9-SNAPSHOT'
}
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
base.archivesName = project.archives_base_name
version = project.mod_version
group = project.maven_group
repositories {
mavenCentral()
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
include(modImplementation("net.kyori:adventure-platform-fabric:5.14.1")) // for Minecraft 1.21-1.21.1
include(implementation("net.kyori:adventure-text-serializer-gson:4.17.0"))
include(implementation("net.kyori:adventure-text-serializer-legacy:4.17.0"))
include(implementation("org.luaj:luaj-jse:3.0.1"))
// Uncomment the following line to enable the deprecated Fabric API modules.
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 21
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
}
}