Add Fabric-Jar-Type to jar manifest.

Either 'classes' or 'sources', the idea is mod distribution platforms can check that sources jars are not uploaded accidentally.

Closes #939
This commit is contained in:
modmuss50
2023-09-11 11:47:19 +01:00
parent 1a4f76584f
commit 0b36121357
3 changed files with 14 additions and 0 deletions

View File

@@ -109,6 +109,8 @@ public abstract class RemapJarTask extends AbstractRemapJarTask {
// Make outputs reproducible by default
setReproducibleFileOrder(true);
setPreserveFileTimestamps(false);
getJarType().set("classes");
}
private void setupPreparationTask() {