2018-11-03 23:22:32 +01:00
|
|
|
plugins {
|
2024-12-27 22:44:15 -03:00
|
|
|
id 'fabric-loom' version '1.9-SNAPSHOT'
|
2018-11-03 23:22:32 +01:00
|
|
|
}
|
|
|
|
|
|
2024-12-27 22:44:15 -03:00
|
|
|
base.archivesName = project.archives_base_name
|
2019-02-15 21:54:29 +01:00
|
|
|
version = project.mod_version
|
2019-02-15 22:25:50 +01:00
|
|
|
group = project.maven_group
|
2018-11-03 23:22:32 +01:00
|
|
|
|
2021-02-07 19:38:57 +02:00
|
|
|
repositories {
|
2023-01-31 22:49:50 -05:00
|
|
|
mavenCentral()
|
2021-02-07 19:38:57 +02:00
|
|
|
}
|
|
|
|
|
|
2018-11-06 10:51:23 +01:00
|
|
|
dependencies {
|
2020-11-10 14:11:54 -08:00
|
|
|
// To change the versions see the gradle.properties file
|
2019-02-15 21:54:29 +01:00
|
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
2019-11-19 14:38:13 -08:00
|
|
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
2020-02-28 20:43:32 +00:00
|
|
|
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
|
2020-02-28 20:43:32 +00:00
|
|
|
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
|
|
|
|
2019-02-15 22:39:48 +01:00
|
|
|
processResources {
|
|
|
|
|
inputs.property "version", project.version
|
|
|
|
|
|
2020-10-14 21:23:07 +11:00
|
|
|
filesMatching("fabric.mod.json") {
|
2019-02-15 22:39:48 +01:00
|
|
|
expand "version": project.version
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-10 14:11:54 -08:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
2021-11-16 19:30:30 +00:00
|
|
|
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
|
2024-10-12 18:54:04 +07:00
|
|
|
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
|
|
|
}
|
|
|
|
|
|
2019-02-15 21:56:50 +01:00
|
|
|
jar {
|
2020-11-10 14:11:54 -08:00
|
|
|
from("LICENSE") {
|
2024-12-27 23:25:46 -03:00
|
|
|
rename { "${it}_${base.archivesName}"}
|
2020-11-10 14:11:54 -08:00
|
|
|
}
|
2019-02-15 21:56:50 +01:00
|
|
|
}
|