I am trying to add [forge-1.18.2-40.1.31-mdk] to eclipse. I ran gradlew genEclipseRun --stacktrace in my cmd, but it failed at CONFIGURING:
A problem occurred configuring root project 'forge-1.18.2-40.1.31-mdk'.
Could not resolve dependency: net.minecraftforge:forge:1.18.2-40.1.31:userdev
Here is the full output message: