rjaros / kvision

Object oriented web framework for Kotlin/JS
https://kvision.io
MIT License
1.2k stars 66 forks source link

Task :jsProcessResources FAILED #495

Closed chavu closed 8 months ago

chavu commented 8 months ago

After upgrating kVision from 6.1.2 to 7.0.1, I'm getting the error below when I try to build/run the frontend. How do I prevent the error or specify the duplicationStrategy?

> Task :jsProcessResources FAILED

FAILURE: Build failed with an exception.

Caused by: org.gradle.api.InvalidUserCodeException: Entry index.html is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/8.2/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.
chavu commented 8 months ago

Adding the below lines in build.gradle.kts seem to have removed the error.

    project.tasks.named("jsProcessResources", Copy::class.java) {
        duplicatesStrategy = DuplicatesStrategy.INCLUDE
    }