From 299601998da50145d9f04c9065330664057ea08d Mon Sep 17 00:00:00 2001 From: lionarius Date: Sun, 30 Jun 2024 14:50:37 +0300 Subject: [PATCH] replace single quotes with double quotes in groovy --- build.gradle | 24 ++++++++++++------------ common/build.gradle | 2 +- fabric/build.gradle | 14 +++++++------- neoforge/build.gradle | 18 +++++++++--------- settings.gradle | 18 +++++++++--------- 5 files changed, 38 insertions(+), 38 deletions(-) diff --git a/build.gradle b/build.gradle index 5e71c57..6fe566e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ plugins { - id 'dev.architectury.loom' version '1.6-SNAPSHOT' apply false - id 'architectury-plugin' version '3.4-SNAPSHOT' - id 'com.github.johnrengelman.shadow' version '8.1.1' apply false + id "dev.architectury.loom" version "1.6-SNAPSHOT" apply false + id "architectury-plugin" version "3.4-SNAPSHOT" + id "com.github.johnrengelman.shadow" version "8.1.1" apply false id "io.github.pacifistmc.forgix" version "1.2.9" id "me.shedaniel.unified-publishing" version "0.1.+" } @@ -30,8 +30,8 @@ allprojects { } subprojects { - apply plugin: 'dev.architectury.loom' - apply plugin: 'architectury-plugin' + apply plugin: "dev.architectury.loom" + apply plugin: "architectury-plugin" loom { silentMojangMappingsLicense() @@ -46,8 +46,8 @@ subprojects { repositories { maven { - name = 'ParchmentMC' - url = 'https://maven.parchmentmc.org' + name = "ParchmentMC" + url = "https://maven.parchmentmc.org" } } @@ -78,7 +78,7 @@ subprojects { } // Adapted from https://raw.githubusercontent.com/TerraformersMC/GradleScripts/2.7/ferry.gradle -tasks.register('generateChangelog') { +tasks.register("generateChangelog") { ext.changelog = "" def lastTag = previousTag @@ -111,13 +111,13 @@ tasks.register('generateChangelog') { } } -tasks.register('assertNewVersion') { +tasks.register("assertNewVersion") { if (headTag == previousTag) { throw new GradleException("Current version $headTag is the same as previous. Please create a new version tag if you want to proceed.") } } -tasks.publishUnified.dependsOn('assertNewVersion', 'build') +tasks.publishUnified.dependsOn("assertNewVersion", "build") unifiedPublishing { project { @@ -125,8 +125,8 @@ unifiedPublishing { version = project.version changelog = generateChangelog.changelog releaseType = "release" - gameVersions = List.of(project.game_versions.split(',')) - gameLoaders = List.of(project.mod_loaders.split(',')) + gameVersions = List.of(project.game_versions.split(",")) + gameLoaders = List.of(project.mod_loaders.split(",")) mainPublication.set(file("build/libs/merged/${project.archives_name}-${project.version}.jar")) diff --git a/common/build.gradle b/common/build.gradle index 56de260..86b2025 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -1,5 +1,5 @@ architectury { - common rootProject.enabled_platforms.split(',') + common rootProject.enabled_platforms.split(",") } dependencies { diff --git a/fabric/build.gradle b/fabric/build.gradle index 4119e23..73eaf12 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'com.github.johnrengelman.shadow' + id "com.github.johnrengelman.shadow" } architectury { @@ -17,7 +17,7 @@ configurations { developmentFabric.extendsFrom common // Files in this configuration will be bundled into your mod using the Shadow plugin. - // Don't use the `shadow` configuration from the plugin itself as it's meant for excluding files. + // Don"t use the `shadow` configuration from the plugin itself as it"s meant for excluding files. shadowBundle { canBeResolved = true canBeConsumed = false @@ -27,21 +27,21 @@ configurations { dependencies { modImplementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version" - common(project(path: ':common', configuration: 'namedElements')) { transitive false } - shadowBundle project(path: ':common', configuration: 'transformProductionFabric') + common(project(path: ":common", configuration: "namedElements")) { transitive false } + shadowBundle project(path: ":common", configuration: "transformProductionFabric") } processResources { - inputs.property 'version', project.version + inputs.property "version", project.version - filesMatching('fabric.mod.json') { + filesMatching("fabric.mod.json") { expand version: project.version } } shadowJar { configurations = [project.configurations.shadowBundle] - archiveClassifier = 'dev-shadow' + archiveClassifier = "dev-shadow" } remapJar { diff --git a/neoforge/build.gradle b/neoforge/build.gradle index bca3388..bac995b 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'com.github.johnrengelman.shadow' + id "com.github.johnrengelman.shadow" } architectury { @@ -17,7 +17,7 @@ configurations { developmentNeoForge.extendsFrom common // Files in this configuration will be bundled into your mod using the Shadow plugin. - // Don't use the `shadow` configuration from the plugin itself as it's meant for excluding files. + // Don"t use the `shadow` configuration from the plugin itself as it"s meant for excluding files. shadowBundle { canBeResolved = true canBeConsumed = false @@ -26,29 +26,29 @@ configurations { repositories { maven { - name = 'NeoForged' - url = 'https://maven.neoforged.net/releases' + name = "NeoForged" + url = "https://maven.neoforged.net/releases" } } dependencies { neoForge "net.neoforged:neoforge:$rootProject.neoforge_loader_version" - common(project(path: ':common', configuration: 'namedElements')) { transitive false } - shadowBundle project(path: ':common', configuration: 'transformProductionNeoForge') + common(project(path: ":common", configuration: "namedElements")) { transitive false } + shadowBundle project(path: ":common", configuration: "transformProductionNeoForge") } processResources { - inputs.property 'version', project.version + inputs.property "version", project.version - filesMatching('META-INF/neoforge.mods.toml') { + filesMatching("META-INF/neoforge.mods.toml") { expand version: project.version } } shadowJar { configurations = [project.configurations.shadowBundle] - archiveClassifier = 'dev-shadow' + archiveClassifier = "dev-shadow" } remapJar { diff --git a/settings.gradle b/settings.gradle index 24afc28..0bc0b4d 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,16 +1,16 @@ pluginManagement { repositories { maven { - name = 'Architectury' - url = 'https://maven.architectury.dev/' + name = "Architectury" + url = "https://maven.architectury.dev/" } maven { - name = 'Fabric' - url = 'https://maven.fabricmc.net/' + name = "Fabric" + url = "https://maven.fabricmc.net/" } maven { - name = 'Forge' - url = 'https://files.minecraftforge.net/maven/' + name = "Forge" + url = "https://files.minecraftforge.net/maven/" } mavenCentral() gradlePluginPortal() @@ -19,6 +19,6 @@ pluginManagement { rootProject.name = "skin-restorer" -include 'common' -include 'fabric' -include 'neoforge' +include "common" +include "fabric" +include "neoforge"