feat: added TranslatableText support

This commit is contained in:
moonleay 2024-04-22 23:30:24 +02:00
parent 05db012b85
commit 7be72ac9d9
Signed by: moonleay
GPG key ID: 82667543CCD715FB
6 changed files with 57 additions and 14 deletions

View file

@ -53,6 +53,10 @@ repositories {
}
}
fabricApi {
configureDataGeneration()
}
dependencies {
// To change the versions see the gradle.properties file
minecraft("com.mojang:minecraft:$minecraftVersion")
@ -98,6 +102,7 @@ tasks {
withType<ProcessResources> {
filteringCharset = "UTF-8"
duplicatesStrategy = DuplicatesStrategy.INCLUDE
inputs.properties(templateProps)
filesMatching("fabric.mod.json") {
expand(templateProps)
@ -117,13 +122,11 @@ tasks {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible) {
options.release.set(targetJavaVersion)
}
dependsOn("generateTemplates", "processResources")
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = targetJavaVersion.toString()
dependsOn("generateTemplates", "processResources")
}
withType<Jar> {
@ -132,7 +135,7 @@ tasks {
}
archiveBaseName.set(mavenArtifact)
duplicatesStrategy = DuplicatesStrategy.INCLUDE
dependsOn("generateTemplates", "processResources")
}
}