MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
526 stars 446 forks source link

Introduce `ideaFolder` run config property #907

Closed andriihorpenko closed 1 year ago

andriihorpenko commented 1 year ago

Introduction

This PR introduces ideaFolder run config property, which adds a folderName run attribute to IntelliJ-based runs. This allows grouping runs into folders, which helps organizing project-related runs into their own groups.

Examples

Suppose you have a multi-project build with three subprojects: mod-a, mod-b and mod-c. All of them are mods, which generate their own runs.

Currently, all runs are placed on the same level, which makes runs list bloated. With this PR, adding ideaFolder(project.name) inside a run config will place runs under a folder named after subproject's name.

Before After
image image

Implementation notice

  1. As IntelliJ permits folders with empty name, folderName attribute should be present only when a folder is used.
  2. ideaFolder follows the same code style as ideaModule.
SizableShrimp commented 1 year ago

Completed in ForgeGradle 6 with the IDE run configuration overhaul (use the new RunConfig property folderName instead).