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.
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 inaddRepoFilters
has been changed to check all starting task names if they end withDownloadSources
to future proof this. This fix allows clicking theDownload sources
button on dependency class files with ForgeGradle enabled to run without issues and attempt to download sources.