Skip to content

Entry META-INF/LICENSE is a duplicate but no duplicate handling strategy has been set #38

@WillsterJohnson

Description

@WillsterJohnson

Title is the error message. This happened when depending on embed "com.fasterxml.jackson.core:jackson-databind:2.18.2", I assume it happens when embedding any library with a file conflict

I managed to solve the issue by setting a duplicatesStrategy like so;

// build.gradle

jar {
    //...
    from(provider{ configurations.embed.collect {it.isDirectory() ? it : zipTree(it)} })
+   { duplicatesStrategy = DuplicatesStrategy.EXCLUDE }
}

This is on the master branch as of c19ab24

Mostly opening this issue so anyone else with the same error has something to try, I'm not sure this is the ideal solution but it at least gets the build to complete

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions