mirror of
https://codeberg.org/moonleay/Gimbal.git
synced 2025-06-07 08:56:17 +02:00
feat: added TranslatableText support
This commit is contained in:
parent
05db012b85
commit
7be72ac9d9
6 changed files with 57 additions and 14 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue