Skip to content

[7.0] Cleandev runs are broken #1049

@PaintNinja

Description

@PaintNinja

Attempting to run with a clean MC dependency such as minecraft.dependency('net.minecraft:client:1.21.11') or implementation minecraft.dependency('net.minecraft:joined:1.21.11') triggers an exception stating that the runs.json does not exist:

A problem was found with the configuration of task ':runClient' (type 'SlimeLauncherExec').
  - Type 'net.minecraftforge.gradle.internal.SlimeLauncherExec' property 'runsJson' specifies file 'C:\Users\oscar\Downloads\forge-1.21.11-61.1.1-mdk\build\minecraftforge\forgegradle\slimeLauncherMetadata\runs.json' which doesn't exist.
    
    Reason: An input file was expected to be present but it doesn't exist.
    
    Possible solutions:
      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.

To reproduce:

  1. Grab a minimal FG7 MDK
  2. Delete the example Config.java and turn ExampleMod.java into an empty class so that no Forge code is referenced
  3. Change the Minecraft dependency to one of the two mentioned near the top of this issue report.
  4. Attempt to run the runClient or runServer tasks

Last known working version: 7.0.0-beta.19

Build scan: https://scans.gradle.com/s/3p64muvlft6tg

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions