From 3979e1079491da9b39ae4cb84fed7a9e18eab2ba Mon Sep 17 00:00:00 2001 From: Ennui Langeweile <85590273+EnnuiL@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:56:43 -0300 Subject: [PATCH] Hey! I want my tabs back! --- .editorconfig | 3 ++ build.gradle.kts | 110 +++++++++++++++++++++++------------------------ 2 files changed, 58 insertions(+), 55 deletions(-) diff --git a/.editorconfig b/.editorconfig index 8dbb649..4ba32df 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,6 +13,9 @@ trim_trailing_whitespace = false [*.gradle] indent_style = tab +[*.gradle.kts] +indent_style = tab + [*.java] indent_style = tab diff --git a/build.gradle.kts b/build.gradle.kts index f39e015..b1b301b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,92 +1,92 @@ plugins { - id("maven-publish") - alias(libs.plugins.quilt.loom) + id("maven-publish") + alias(libs.plugins.quilt.loom) } project.version = "0.3.0+1.21.1" project.group = "io.github.ennuil" loom { - mods { - register("ennuis_bigger_gambiarra") { - sourceSet(sourceSets["main"]) - } - } - - mixin { - useLegacyMixinAp = false - } + mods { + register("ennuis_bigger_gambiarra") { + sourceSet(sourceSets["main"]) + } + } + + mixin { + useLegacyMixinAp = false + } } repositories { - maven(uri("https://maven.terraformersmc.com/releases/")) - exclusiveContent { - forRepository { - maven(uri("https://api.modrinth.com/maven")) - } - filter { - includeGroup("maven.modrinth") - } - } + maven(uri("https://maven.terraformersmc.com/releases/")) + exclusiveContent { + forRepository { + maven(uri("https://api.modrinth.com/maven")) + } + filter { + includeGroup("maven.modrinth") + } + } } dependencies { - minecraft(libs.minecraft) - mappings(variantOf(libs.quilt.mappings) { classifier("intermediary-v2") }) - modImplementation(libs.quilt.loader) + minecraft(libs.minecraft) + mappings(variantOf(libs.quilt.mappings) { classifier("intermediary-v2") }) + modImplementation(libs.quilt.loader) - modImplementation(libs.fabric.api) + modImplementation(libs.fabric.api) - modCompileOnly(libs.ennuis.bigger.inventories) - modLocalRuntime(libs.ennuis.bigger.inventories) + modCompileOnly(libs.ennuis.bigger.inventories) + modLocalRuntime(libs.ennuis.bigger.inventories) - modCompileOnly(libs.emi) - modLocalRuntime(libs.emi) + modCompileOnly(libs.emi) + modLocalRuntime(libs.emi) } tasks.processResources { - inputs.property("version", version) + inputs.property("version", version) - filesMatching("fabric.mod.json") { - expand("version" to version) - } + filesMatching("fabric.mod.json") { + expand("version" to version) + } } tasks.withType { - options.release = 21 + options.release = 21 } java { - // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task if it is present. - // If you remove this line, sources will not be generated. - withSourcesJar() + // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task if it is present. + // If you remove this line, sources will not be generated. + withSourcesJar() - // If this mod is going to be a library, then it should also generate Javadocs in order to aid with development. - // Uncomment this line to generate them. - // withJavadocJar() + // If this mod is going to be a library, then it should also generate Javadocs in order to aid with development. + // Uncomment this line to generate them. + // withJavadocJar() } // If you plan to use a different file for the license, don't forget to change the file name here! tasks.jar { - from("LICENSE.md") { - rename { "${it}_${base.archivesName.get()}" } - } + from("LICENSE.md") { + rename { "${it}_${base.archivesName.get()}" } + } } // Configure the maven publication publishing { - publications { - register("mavenJava") { - from(components["java"]) - } - } - - // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. - repositories { - // Add repositories to publish to here. - // Notice: This block does NOT have the same function as the block in the top level. - // The repositories here will be used for publishing your artifact, not for - // retrieving dependencies. - } + publications { + register("mavenJava") { + from(components["java"]) + } + } + + // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. + repositories { + // Add repositories to publish to here. + // Notice: This block does NOT have the same function as the block in the top level. + // The repositories here will be used for publishing your artifact, not for + // retrieving dependencies. + } }