chipmunkmod/build.gradle

63 lines
1.7 KiB
Groovy
Raw Normal View History

2018-11-03 23:22:32 +01:00
plugins {
id 'fabric-loom' version "${loom_version}"
2018-11-03 23:22:32 +01:00
}
base.archivesName = project.archives_base_name
version = project.mod_version
2019-02-15 22:25:50 +01:00
group = project.maven_group
2018-11-03 23:22:32 +01:00
repositories {
mavenCentral()
2025-07-06 16:06:49 -03:00
// adventure snapshots
maven {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
mavenContent { snapshotsOnly() }
}
}
2018-11-06 10:51:23 +01:00
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// LuaJ
include(implementation("org.luaj:luaj-jse:3.0.1"))
// Configurate
include(implementation("org.spongepowered:configurate-core:4.2.0"))
include(implementation("org.spongepowered:configurate-gson:4.2.0"))
include(implementation("io.leangen.geantyref:geantyref:2.0.1"))
// Adventure
include(modImplementation("net.kyori:adventure-platform-fabric:6.8.0"))
include(implementation("net.kyori:adventure-text-serializer-gson:4.26.1"))
include(implementation("net.kyori:adventure-text-serializer-legacy:4.26.1"))
2018-11-03 23:22:32 +01:00
}
2018-12-22 17:37:14 +01:00
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
2024-12-27 23:25:46 -03:00
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
2019-02-15 21:55:33 +01:00
}
jar {
from("LICENSE") {
rename { "${it}_${base.archivesName}" }
}
}