@@ -83,13 +83,44 @@ open class PatchRemapTasks(
83
83
84
84
val patchCraftBukkit by tasks.registering<ApplyCraftBukkitPatches > {
85
85
// TODO temp to speed stuff up
86
- // sourceJar.set(spigotDecompileJar.flatMap { it.outputJar })
87
- sourceJar.set(cache.resolve(" paperweight/taskCache/spigotDecompileJar.jar" ))
86
+ sourceJar.set(spigotDecompileJar.flatMap { it.outputJar })
87
+ // sourceJar.set(cache.resolve("paperweight/taskCache/spigotDecompileJar.jar"))
88
88
cleanDirPath.set(" net/minecraft" )
89
89
patchDir.set(extension.patchRemap.patchDir)
90
90
craftBukkitDir.set(extension.patchRemap.craftBukkitDir)
91
91
outputDir.set(extension.patchRemap.patchedCraftBukkitDir)
92
92
93
93
// dependsOn(cloneForPatchRemap)
94
94
}
95
+
96
+ // val filterSpigotMojMapExcludes by tasks.registering<FilterSpigotExcludes> {
97
+ // inputZip.set(spigotMojMapRemapJar.flatMap { it.outputJar })
98
+ // excludesFile.set(extension.patchRemap.excludesFile)
99
+ // }
100
+ //
101
+ // val spigotDecompileMojMapJar by tasks.registering<SpigotDecompileJar> {
102
+ // inputJar.set(filterSpigotMojMapExcludes.flatMap { it.outputZip })
103
+ // fernFlowerJar.set(extension.patchRemap.fernFlowerJar)
104
+ // decompileCommand.set(buildDataInfo.map { it.decompileCommand })
105
+ // }
106
+
107
+ val remapCraftBukkitSources by tasks.registering<RemapSources > {
108
+ vanillaJar.set(allTasks.extractFromBundler.flatMap { it.serverJar })
109
+ // mojangMappedVanillaJar.set(fixJar.flatMap { it.outputJar })
110
+ // vanillaRemappedSpigotJar.set(filterSpigotExcludes.flatMap { it.outputZip })
111
+ // mappings.set(generateSpigotMappings.flatMap { it.outputMappings })
112
+ mappings.set(cache.resolve(SPIGOT_MOJANG_YARN_MAPPINGS ))
113
+ // sources.set(patchCraftBukkit.flatMap { it.outputDir }) // todo temp to speed stuff up
114
+ sources.set(extension.patchRemap.patchedCraftBukkitDir);
115
+ // spigotDeps.from(downloadSpigotDependencies.map { it.outputDir.asFileTree })
116
+ // additionalAts.set(mergePaperAts.flatMap { it.outputFile })
117
+ }
118
+
119
+ // todo first try diffing against remapped mcp config source
120
+ // if that fails, we have to diff against spigot decompiled mojmap+yarn mapped vanilla jar
121
+ val diffCraftBukkitAgainstVanilla by tasks.registering<DiffCraftBukkitAgainstVanilla > {
122
+ craftBukkit.set(remapCraftBukkitSources.flatMap { it.sourcesOutputZip })
123
+ // vanilla.set(allTasks.prepareBase.flatMap { it.output })
124
+ vanilla.set(cache.resolve(BASE_PROJECT ))
125
+ }
95
126
}
0 commit comments