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

Duplicate error when using Gradle 7.1+ #131

Open
AZWN opened this issue Jan 26, 2024 · 0 comments
Open

Duplicate error when using Gradle 7.1+ #131

AZWN opened this issue Jan 26, 2024 · 0 comments
Labels
C-Bug Category: bug. Not working as expected

Comments

@AZWN
Copy link
Contributor

AZWN commented Jan 26, 2024

Summary

Gradle 7+ detects overlapping files when creating Jars. This causes errors in some builds.

What you did

Run gradle :spoofax3.lwb.root:statix.cli:executableJar (with gradle 7.6.2) on a clean repository

What you expected to happen

Build succeeding

What actually happened

Error:

Execution failed for task ':spoofax3.lwb.root:statix.cli:executableJar'.
> Entry mb/statix/package-info.class is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.6.2/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.

Context

  • Spoofax version: 0.19.5 - develop
  • Operating system & version: MacOS 13
  • Java version (if applicable): 11
  • Gradle version (if applicable): 7.6.2

Additional information

Reporting this because it may hinder upgrading to more recent gradle versions. Also occurs in metaborg/pie examples.

@AZWN AZWN added the C-Bug Category: bug. Not working as expected label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug Category: bug. Not working as expected
Projects
None yet
Development

No branches or pull requests

1 participant