diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-04-09 16:41:58 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-05-05 00:17:08 +0200 |
| commit | 72044baeff7da702a66b99afa084f3fe9ab7bbc2 (patch) | |
| tree | 8fbcaac0a4bad53d6677279283a4592bc721336e /build.gradle.kts | |
| parent | 0abfc0068ccf6c1efae91c97ce09a8809eb5da51 (diff) | |
| download | Firmament-72044baeff7da702a66b99afa084f3fe9ab7bbc2.tar.gz Firmament-72044baeff7da702a66b99afa084f3fe9ab7bbc2.tar.bz2 Firmament-72044baeff7da702a66b99afa084f3fe9ab7bbc2.zip | |
fix: Fix (some) parts of custom block rendering.
Diffstat (limited to 'build.gradle.kts')
| -rw-r--r-- | build.gradle.kts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 36f1125..3e7f1f5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,6 +7,7 @@ */ import com.google.common.hash.Hashing +import com.google.devtools.ksp.gradle.KspAATask import com.google.devtools.ksp.gradle.KspTaskJvm import com.google.gson.Gson import com.google.gson.JsonObject @@ -32,7 +33,7 @@ plugins { id("fabric-loom") version "1.10.1" alias(libs.plugins.shadow) id("moe.nea.licenseextractificator") - id("moe.nea.mc-auto-translations") version "0.2.0" + alias(libs.plugins.mcAutoTranslations) } version = getGitTagInfo(libs.versions.minecraft.get()) @@ -139,8 +140,10 @@ fun createIsolatedSourceSet(name: String, path: String = "compat/$name", isEnabl val mainSS = sourceSets.main.get() val upperName = ss.name.capitalizeN() afterEvaluate { - tasks.named("ksp${upperName}Kotlin", KspTaskJvm::class) { - this.options.add(SubpluginOption("apoption", "firmament.sourceset=${ss.name}")) + tasks.named("ksp${upperName}Kotlin", KspAATask::class) { + this.commandLineArgumentProviders.add { // TODO: update https://github.com/google/ksp/issues/2075 + listOf("firmament.sourceset=${ss.name}") + } } tasks.named("compile${upperName}Kotlin", KotlinCompile::class) { this.enabled = isEnabled @@ -231,7 +234,7 @@ val jadeSourceSet = createIsolatedSourceSet("jade", isEnabled = false) val modmenuSourceSet = createIsolatedSourceSet("modmenu") val reiSourceSet = createIsolatedSourceSet("rei", isEnabled = false) val moulconfigSourceSet = createIsolatedSourceSet("moulconfig") -val customTexturesSourceSet = createIsolatedSourceSet("texturePacks", "texturePacks", isEnabled = false) +val customTexturesSourceSet = createIsolatedSourceSet("texturePacks", "texturePacks") dependencies { // Minecraft dependencies |
