Aleksey Blekot
01/17/2023, 5:58 PMstage
fails with error for full-stack-app tutorial
https://github.com/kotlin-hands-on/jvm-js-fullstack/blob/b4bebe15f848a028d2dac6a8faff0e0fe8473a13/build.gradle.kts#L111
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
tasks.withType<Copy> {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
Could somebody help me? 🙂duplicatesStrategy
should be set in distributions block
maybe tutorial should be updated??
distributions {
main {
contents {
from("$buildDir/libs") {
rename("${rootProject.name}-jvm", rootProject.name)
into("lib")
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
}
}