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-10-12 18:54:04 +07:00
sourceCompatibility = JavaVersion . VERSION_21
targetCompatibility = JavaVersion . VERSION_21
2020-11-11 22:19:43 +00: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
// Fabric API. This is technically optional, but you probably want it anyway.
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-27 22:44:15 -03:00
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" ) )
2023-05-07 18:21:49 +07:00
2022-06-07 18:21:20 +01:00
// 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}"
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
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" ) {
rename { "${it}_${project.archivesBaseName}" }
}
2019-02-15 21:56:50 +01:00
}