chipmunkmod/build.gradle

57 lines
1.5 KiB
Groovy
Raw Permalink Normal View History

2018-11-03 23:22:32 +01:00
plugins {
id 'fabric-loom' version '1.9-SNAPSHOT'
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 {
2023-01-31 22:49:50 -05:00
mavenCentral()
}
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 "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
2018-12-09 17:49:28 +01:00
2024-12-31 20:54:07 -03:00
// Fabric API
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
2022-06-07 18:21:20 +01:00
2024-12-31 20:54:07 -03:00
// LuaJ
include(implementation("org.luaj:luaj-jse:3.0.1"))
// Configurate
include(implementation("org.spongepowered:configurate-core:4.1.2"))
include(implementation("org.spongepowered:configurate-gson:4.1.2"))
include(implementation("io.leangen.geantyref:geantyref:1.3.16"))
// Adventure
2024-12-27 23:25:46 -03:00
include(modImplementation("net.kyori:adventure-platform-fabric:6.2.0"))
include(implementation("net.kyori:adventure-text-serializer-gson:4.18.0"))
include(implementation("net.kyori:adventure-text-serializer-legacy:4.18.0"))
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 {
2021-11-16 19:30:30 +00:00
// 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") {
2024-12-27 23:25:46 -03:00
rename { "${it}_${base.archivesName}"}
}
}