2626
2727import org .gradle .api .DefaultTask ;
2828import org .gradle .api .Task ;
29+ import org .gradle .api .file .DuplicatesStrategy ;
2930import org .gradle .api .java .archives .Manifest ;
3031import org .gradle .api .tasks .Delete ;
3132import org .gradle .api .tasks .bundling .Zip ;
@@ -375,10 +376,10 @@ private void createPackageTasks()
375376 uni .getInputs ().file (delayedFile (CDN_JSON_REL ));
376377 uni .getOutputs ().upToDateWhen (Constants .CALL_FALSE );
377378 uni .from (delayedZipTree (BINPATCH_TMP ));
378- uni .from (delayedFileTree (FML_RESOURCES ));
379- uni .from (delayedFileTree (FORGE_RESOURCES ));
380379 uni .from (delayedFileTree (CDN_RESOURCES ));
381380 uni .from (delayedFileTree (EXTRACTED_RES ));
381+ uni .from (delayedFileTree (FML_RESOURCES ));
382+ uni .from (delayedFileTree (FORGE_RESOURCES ));
382383 uni .from (delayedFile (FML_VERSIONF ));
383384 uni .from (delayedFile (FML_LICENSE ));
384385 uni .from (delayedFile (FML_CREDITS ));
@@ -390,6 +391,7 @@ private void createPackageTasks()
390391 uni .from (delayedFile (CHANGELOG ));
391392 uni .from (delayedFile (VERSION_JSON ));
392393 uni .exclude ("devbinpatches.pack.lzma" );
394+ uni .setDuplicatesStrategy (DuplicatesStrategy .EXCLUDE );
393395 uni .setIncludeEmptyDirs (false );
394396 uni .setManifest (new Closure <Object >(project )
395397 {
0 commit comments