CC-Tweaked/buildSrc/src/main/kotlin/cc/tweaked/gradle
Jonathan Coates 1a87d1bf45
Move shared generated resources to common project
In 1.20.1, Forge and Fabric have different "common" tag conventions (for
instance, Forge uses forge:dusts/redstone, while Fabric uses
c:redstone_dusts). This means the generated recipes (and advancements)
will be different for the two loader projects. As such, we run data
generators for each loader, and store the results separately.

However, aside from some recipes and advancements, most resources /are/
the same between the two. This means we end up with a lot of duplicate
files, which make the diff even harder to read. This gets worse in
1.20.5, when NeoForge and Fabric have (largely) unified their tag names.

This commit now merges the generated resources of the two loaders,
moving shared files to the common project.

 - Add a new MergeTrees command, to handle the de-duplication of files.
 - Change the existing runData tasks to write to
   build/generatedResources.
 - Add a new :common:runData task, that reads from the
   build/generatedResources folder and writes to the per-project
   src/generated/resources.
2024-04-26 18:09:08 +01:00
..
CCTweakedExtension.kt Fix some dependencies not appearing in the POM 2024-01-03 21:05:03 +00:00
CCTweakedPlugin.kt Replace Fabric JUnit hacks with fabric-loader-junit 2023-10-26 22:06:40 +01:00
CheckChangelog.kt License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
DependencyCheck.kt Backport small changes from the 1.20.4 branch 2024-01-16 21:42:25 +00:00
ExecTasks.kt Relocate our existing web code to subdirectories 2023-09-28 21:00:07 +01:00
Extensions.kt Improve our version tooling 2023-12-19 18:12:21 +00:00
ForgeExtensions.kt Be lazier in configuring Forge runs 2023-06-29 22:31:49 +01:00
IdeaExt.kt Replace Fabric JUnit hacks with fabric-loader-junit 2023-10-26 22:06:40 +01:00
IdeaRunConfigurations.kt License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
Illuaminate.kt Update to Gradle 8.x 2023-06-29 20:10:17 +01:00
MavenDependencySpec.kt Add a slightly cleaner system for excluding deps 2023-12-16 22:35:15 +00:00
MergeTrees.kt Move shared generated resources to common project 2024-04-26 18:09:08 +01:00
MinecraftConfigurations.kt Switch to our own Gradle plugin for vanilla Minecraft 2024-01-29 20:59:16 +00:00
MinecraftExec.kt Fix a couple of future deprecations in Gradle 2023-10-19 18:28:15 +01:00
Node.kt Fix build on Windows 2024-04-24 17:55:48 +01:00
ProcessHelpers.kt Fix build on Windows 2024-04-24 17:55:48 +01:00
SourceSetReference.kt License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
XmlUtil.kt License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00