From e10fcc23e463dd8af10fd3428e3f55614657eeb7 Mon Sep 17 00:00:00 2001 From: Jared Date: Sun, 11 Jun 2023 01:21:39 +0200 Subject: [PATCH] Lowercase the project names as per gradle naming convention --- {Common => common}/build.gradle | 0 .../java/com/example/examplemod/CommonClass.java | 0 .../main/java/com/example/examplemod/Constants.java | 0 .../com/example/examplemod/platform/Services.java | 0 .../platform/services/IPlatformHelper.java | 0 {Common => common}/src/main/resources/pack.mcmeta | 0 {Fabric => fabric}/build.gradle | 6 +++--- .../main/java/com/example/examplemod/ExampleMod.java | 0 .../com/example/examplemod/mixin/ExampleMixin.java | 0 .../examplemod/platform/FabricPlatformHelper.java | 0 ...mple.examplemod.platform.services.IPlatformHelper | 0 .../src/main/resources/fabric.mod.json | 0 .../src/main/resources/modid.mixins.json | 0 {Forge => forge}/build.gradle | 12 ++++++------ .../main/java/com/example/examplemod/ExampleMod.java | 0 .../examplemod/platform/ForgePlatformHelper.java | 0 .../src/main/resources/META-INF/mods.toml | 0 ...mple.examplemod.platform.services.IPlatformHelper | 0 settings.gradle | 2 +- 19 files changed, 10 insertions(+), 10 deletions(-) rename {Common => common}/build.gradle (100%) rename {Common => common}/src/main/java/com/example/examplemod/CommonClass.java (100%) rename {Common => common}/src/main/java/com/example/examplemod/Constants.java (100%) rename {Common => common}/src/main/java/com/example/examplemod/platform/Services.java (100%) rename {Common => common}/src/main/java/com/example/examplemod/platform/services/IPlatformHelper.java (100%) rename {Common => common}/src/main/resources/pack.mcmeta (100%) rename {Fabric => fabric}/build.gradle (90%) rename {Fabric => fabric}/src/main/java/com/example/examplemod/ExampleMod.java (100%) rename {Fabric => fabric}/src/main/java/com/example/examplemod/mixin/ExampleMixin.java (100%) rename {Fabric => fabric}/src/main/java/com/example/examplemod/platform/FabricPlatformHelper.java (100%) rename {Fabric => fabric}/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper (100%) rename {Fabric => fabric}/src/main/resources/fabric.mod.json (100%) rename {Fabric => fabric}/src/main/resources/modid.mixins.json (100%) rename {Forge => forge}/build.gradle (89%) rename {Forge => forge}/src/main/java/com/example/examplemod/ExampleMod.java (100%) rename {Forge => forge}/src/main/java/com/example/examplemod/platform/ForgePlatformHelper.java (100%) rename {Forge => forge}/src/main/resources/META-INF/mods.toml (100%) rename {Forge => forge}/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper (100%) diff --git a/Common/build.gradle b/common/build.gradle similarity index 100% rename from Common/build.gradle rename to common/build.gradle diff --git a/Common/src/main/java/com/example/examplemod/CommonClass.java b/common/src/main/java/com/example/examplemod/CommonClass.java similarity index 100% rename from Common/src/main/java/com/example/examplemod/CommonClass.java rename to common/src/main/java/com/example/examplemod/CommonClass.java diff --git a/Common/src/main/java/com/example/examplemod/Constants.java b/common/src/main/java/com/example/examplemod/Constants.java similarity index 100% rename from Common/src/main/java/com/example/examplemod/Constants.java rename to common/src/main/java/com/example/examplemod/Constants.java diff --git a/Common/src/main/java/com/example/examplemod/platform/Services.java b/common/src/main/java/com/example/examplemod/platform/Services.java similarity index 100% rename from Common/src/main/java/com/example/examplemod/platform/Services.java rename to common/src/main/java/com/example/examplemod/platform/Services.java diff --git a/Common/src/main/java/com/example/examplemod/platform/services/IPlatformHelper.java b/common/src/main/java/com/example/examplemod/platform/services/IPlatformHelper.java similarity index 100% rename from Common/src/main/java/com/example/examplemod/platform/services/IPlatformHelper.java rename to common/src/main/java/com/example/examplemod/platform/services/IPlatformHelper.java diff --git a/Common/src/main/resources/pack.mcmeta b/common/src/main/resources/pack.mcmeta similarity index 100% rename from Common/src/main/resources/pack.mcmeta rename to common/src/main/resources/pack.mcmeta diff --git a/Fabric/build.gradle b/fabric/build.gradle similarity index 90% rename from Fabric/build.gradle rename to fabric/build.gradle index 535c5e4..e9f0b46 100644 --- a/Fabric/build.gradle +++ b/fabric/build.gradle @@ -12,7 +12,7 @@ dependencies { modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}" modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}" implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1' - implementation project(":Common") + implementation project(":common") } loom { @@ -34,7 +34,7 @@ loom { processResources { - from project(":Common").sourceSets.main.resources + from project(":common").sourceSets.main.resources inputs.property "version", project.version filesMatching("fabric.mod.json") { @@ -43,7 +43,7 @@ processResources { } tasks.withType(JavaCompile) { - source(project(":Common").sourceSets.main.allSource) + source(project(":common").sourceSets.main.allSource) } publishing { diff --git a/Fabric/src/main/java/com/example/examplemod/ExampleMod.java b/fabric/src/main/java/com/example/examplemod/ExampleMod.java similarity index 100% rename from Fabric/src/main/java/com/example/examplemod/ExampleMod.java rename to fabric/src/main/java/com/example/examplemod/ExampleMod.java diff --git a/Fabric/src/main/java/com/example/examplemod/mixin/ExampleMixin.java b/fabric/src/main/java/com/example/examplemod/mixin/ExampleMixin.java similarity index 100% rename from Fabric/src/main/java/com/example/examplemod/mixin/ExampleMixin.java rename to fabric/src/main/java/com/example/examplemod/mixin/ExampleMixin.java diff --git a/Fabric/src/main/java/com/example/examplemod/platform/FabricPlatformHelper.java b/fabric/src/main/java/com/example/examplemod/platform/FabricPlatformHelper.java similarity index 100% rename from Fabric/src/main/java/com/example/examplemod/platform/FabricPlatformHelper.java rename to fabric/src/main/java/com/example/examplemod/platform/FabricPlatformHelper.java diff --git a/Fabric/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper b/fabric/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper similarity index 100% rename from Fabric/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper rename to fabric/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper diff --git a/Fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json similarity index 100% rename from Fabric/src/main/resources/fabric.mod.json rename to fabric/src/main/resources/fabric.mod.json diff --git a/Fabric/src/main/resources/modid.mixins.json b/fabric/src/main/resources/modid.mixins.json similarity index 100% rename from Fabric/src/main/resources/modid.mixins.json rename to fabric/src/main/resources/modid.mixins.json diff --git a/Forge/build.gradle b/forge/build.gradle similarity index 89% rename from Forge/build.gradle rename to forge/build.gradle index 6762a90..e9c4647 100644 --- a/Forge/build.gradle +++ b/forge/build.gradle @@ -27,7 +27,7 @@ minecraft { mods { modClientRun { source sourceSets.main - source project(":Common").sourceSets.main + source project(":common").sourceSets.main } } } @@ -41,7 +41,7 @@ minecraft { mods { modServerRun { source sourceSets.main - source project(":Common").sourceSets.main + source project(":common").sourceSets.main } } } @@ -56,7 +56,7 @@ minecraft { mods { modDataRun { source sourceSets.main - source project(":Common").sourceSets.main + source project(":common").sourceSets.main } } } @@ -67,15 +67,15 @@ sourceSets.main.resources.srcDir 'src/generated/resources' dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" - compileOnly project(":Common") + compileOnly project(":common") } tasks.withType(JavaCompile) { - source(project(":Common").sourceSets.main.allSource) + source(project(":common").sourceSets.main.allSource) } processResources { - from project(":Common").sourceSets.main.resources + from project(":common").sourceSets.main.resources } diff --git a/Forge/src/main/java/com/example/examplemod/ExampleMod.java b/forge/src/main/java/com/example/examplemod/ExampleMod.java similarity index 100% rename from Forge/src/main/java/com/example/examplemod/ExampleMod.java rename to forge/src/main/java/com/example/examplemod/ExampleMod.java diff --git a/Forge/src/main/java/com/example/examplemod/platform/ForgePlatformHelper.java b/forge/src/main/java/com/example/examplemod/platform/ForgePlatformHelper.java similarity index 100% rename from Forge/src/main/java/com/example/examplemod/platform/ForgePlatformHelper.java rename to forge/src/main/java/com/example/examplemod/platform/ForgePlatformHelper.java diff --git a/Forge/src/main/resources/META-INF/mods.toml b/forge/src/main/resources/META-INF/mods.toml similarity index 100% rename from Forge/src/main/resources/META-INF/mods.toml rename to forge/src/main/resources/META-INF/mods.toml diff --git a/Forge/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper b/forge/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper similarity index 100% rename from Forge/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper rename to forge/src/main/resources/META-INF/services/com.example.examplemod.platform.services.IPlatformHelper diff --git a/settings.gradle b/settings.gradle index f8a3342..89ec185 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,4 +17,4 @@ pluginManagement { } rootProject.name = 'MultiLoader' -include("Common", "Fabric", "Forge") \ No newline at end of file +include("common", "fabric", "forge") \ No newline at end of file