litiengine-gurk-nukem
litiengine-gurk-nukem copied to clipboard
Build doesn't actually work in Gradle 7.2
This project was upgraded to Gradle 7.2 but it doesn't actually build in Gradle 7.2. To get it to build in Gradle 7.2 this needs to be added to build.gradle
:
project.tasks.named("processResources") {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
Otherwise it complains about README.md being added to a sourceSet twice (not sure how it is being added twice but Gradle claims it is).
See: https://docs.gradle.org/current/userguide/upgrading_version_6.html#duplicates-strategy
True, I encountered this issue a few days ago. Thank you!
Also, if sourceCompatibility = 1.8
is added the project builds (and runs) just fine with Java 17. Some version of Java after 11 requires both target and source (it is never really appropriate to use one without the other anyway).