task `stage` fails with error for <full-stack-app ...
# server
a
task
stage
fails with error for full-stack-app tutorial https://github.com/kotlin-hands-on/jvm-js-fullstack/blob/b4bebe15f848a028d2dac6a8faff0e0fe8473a13/build.gradle.kts#L111
Copy code
Execution failed for task ':installDist'.
> Entry lib/shoppinglist-1.0-SNAPSHOT.jar is a duplicate but no duplicate handling strategy has been set.
adding this in build.gradle doesn’t help
Copy code
tasks.withType<Copy> {
    duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
Could somebody help me? 🙂
it seems like
duplicatesStrategy
should be set in distributions block maybe tutorial should be updated??
Copy code
distributions {
    main {
        contents {
            from("$buildDir/libs") {
                rename("${rootProject.name}-jvm", rootProject.name)
                into("lib")
            }
            duplicatesStrategy = DuplicatesStrategy.INCLUDE
        }
    }
}