Apply the same manifest attributes to the sources jar. Including a list of client only entries.

Will be used to split the sources into client/common jars in a later change.
This commit is contained in:
modmuss50
2022-06-20 21:11:11 +01:00
parent f705e997e8
commit 317c6daedd
6 changed files with 106 additions and 82 deletions

View File

@@ -128,6 +128,7 @@ public class RemapTaskConfiguration {
task.dependsOn(sourcesJarTask);
task.getInputFile().convention(sourcesJarTask.getArchiveFile());
task.getIncludesClientOnlyClasses().set(project.provider(extension::areEnvironmentSourceSetsSplit));
});
tasks.named(BasePlugin.ASSEMBLE_TASK_NAME).configure(task -> task.dependsOn(remapSourcesTask));