Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build doesn't actually work in Gradle 7.2 #24

Open
mjparme opened this issue Sep 30, 2021 · 2 comments
Open

Build doesn't actually work in Gradle 7.2 #24

mjparme opened this issue Sep 30, 2021 · 2 comments

Comments

@mjparme
Copy link

mjparme commented Sep 30, 2021

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

@nightm4re94
Copy link
Member

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

@mjparme
Copy link
Author

mjparme commented Oct 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants