MinecraftForge / ForgeGradle

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

Fix IntelliJ downloading sources #830

Closed SizableShrimp closed 2 years ago

SizableShrimp commented 2 years ago

Newer IntelliJ versions prefix the DownloadSources task with a colon, although there may be other cases that make IntelliJ automatically prefix a subproject. The check in addRepoFilters has been changed to check all starting task names if they end with DownloadSources to future proof this. This fix allows clicking the Download sources button on dependency class files with ForgeGradle enabled to run without issues and attempt to download sources.

LexManos commented 2 years ago

We'll see if this works, got to love stupid IDE specific things.