Closed shartte closed 3 years ago
Upon further investigation:
The IntelliJ init script will make a copy of all repositories, and then loop over them. It adds each repository as the only repository and tries to resolve the source artifact.
This line will repeatedly try to add the content filter in this scenario: https://github.com/MinecraftForge/ForgeGradle/blob/FG_5.0/src/common/java/net/minecraftforge/gradle/common/util/Utils.java#L409
project.getRepositories().all(Utils::addMappedFilter);
I didn't know that all
also gets called for future additions to the list, and not just the current content.
Fixed in 7082e8a9b6c4850b53ea45e8ecf7560bf35fa6ca
IntelliJ seemingly uses a temporary gradle script to download sources, which in combination with FG fails.
This is the temporary gradle script that IntelliJ uses: