A POM cannot have multiple artifacts with the same type and classifier

Hi, I’m currently struggling to get a project with the application and the shadow plugin to work.

I suppose the issue is that the shadowJar and the jar task both generate dists. I tried disabling the dist tasks for the shadowJar task but that never worked. Anyways if anyone can help me it would be highly apprechiated.

Here is a link to the build scan if it helps (contains the full error): https://scans.gradle.com/s/dzejj77nx3oxu

If you need additional information, let me know.

Small update: Removing the shadow plugin and the shadowJar task from the project resolved this issue. Though I’d still like to know how I can make it work with that plugin.