code
code copied to clipboard
Make Maven file resolution case-insensitive
When Maven resolves the dependency, it sends the artifactId as part of the .jar and .pom file name in whatever case was specified for the dependency.
The problem is that the file name is in the case that the user uploaded it (usually the same as their original artifactId), and the .pom file generated by modrinth is always lowercase. This means that unless your artifactId is in lowercase ONLY and the uploaded file is also only in lowercase, Modrinth will fail to serve the correct file.
This PR changes the file name comparison to be case-insensitive.