2018-11-03 18:22:32 -04:00
plugins {
2023-07-01 10:57:05 -04:00
id 'fabric-loom' version '1.2-SNAPSHOT'
2019-02-15 16:26:03 -05:00
id 'maven-publish'
2018-11-03 18:22:32 -04:00
}
2021-11-16 14:30:30 -05:00
sourceCompatibility = JavaVersion . VERSION_17
targetCompatibility = JavaVersion . VERSION_17
2020-11-11 17:19:43 -05:00
2019-02-15 15:54:29 -05:00
archivesBaseName = project . archives_base_name
version = project . mod_version
2019-02-15 16:25:50 -05:00
group = project . maven_group
2018-11-03 18:22:32 -04:00
2018-11-06 04:51:23 -05:00
dependencies {
2023-06-30 14:29:04 -04:00
implementation 'org.apache.commons:commons-text:1.10.0' // Use the version that best suits your project
2020-11-10 17:11:54 -05:00
// To change the versions see the gradle.properties file
2019-02-15 15:54:29 -05:00
minecraft "com.mojang:minecraft:${project.minecraft_version}"
2019-11-19 17:38:13 -05:00
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
2020-02-28 15:43:32 -05:00
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
2018-12-09 11:49:28 -05:00
// Fabric API. This is technically optional, but you probably want it anyway.
2020-02-28 15:43:32 -05:00
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
2022-06-07 13:21:20 -04:00
2023-07-01 10:57:05 -04:00
modImplementation include ( "net.kyori:adventure-platform-fabric:5.8.0" ) // still works on 1.20.1
2023-05-03 10:02:11 -04:00
2023-07-01 10:57:05 -04:00
modImplementation include ( "net.kyori:adventure-text-serializer-legacy:4.14.0" )
2023-05-06 03:14:26 -04:00
2023-05-07 07:21:49 -04:00
modImplementation include ( "org.luaj:luaj-jse:3.0.1" )
2022-06-07 13:21:20 -04: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}"
2023-01-31 22:49:50 -05:00
2023-07-01 10:57:05 -04:00
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
2023-01-31 22:49:50 -05:00
2023-07-01 10:57:05 -04:00
testCompileOnly 'org.projectlombok:lombok:1.18.28'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
2018-11-03 18:22:32 -04:00
}
2018-12-22 11:37:14 -05:00
2019-02-15 16:39:48 -05:00
processResources {
inputs . property "version" , project . version
2020-10-14 06:23:07 -04:00
filesMatching ( "fabric.mod.json" ) {
2019-02-15 16:39:48 -05:00
expand "version" : project . version
}
}
2020-11-10 17:11:54 -05:00
tasks . withType ( JavaCompile ) . configureEach {
2021-11-16 14:30:30 -05:00
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it . options . release = 17
2019-02-15 15:55:33 -05:00
}
2019-02-15 15:56:50 -05:00
jar {
2020-11-10 17:11:54 -05:00
from ( "LICENSE" ) {
rename { "${it}_${project.archivesBaseName}" }
}
2019-02-15 15:56:50 -05:00
}