litiengine-gurk-nukem icon indicating copy to clipboard operation
litiengine-gurk-nukem copied to clipboard

Build doesn't actually work in Gradle 7.2

Open mjparme opened this issue 3 years ago • 2 comments

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

mjparme avatar Sep 30 '21 14:09 mjparme

True, I encountered this issue a few days ago. Thank you!

nightm4re94 avatar Oct 01 '21 13:10 nightm4re94

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).

mjparme avatar Oct 01 '21 14:10 mjparme