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

Fix Gradle Build Issue by Updating copyDistribution Task Configuration #10

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

dariuszzbyrad
Copy link
Member

@dariuszzbyrad dariuszzbyrad commented Oct 19, 2024

This PR resolves a build failure in the Gradle copyDistribution task caused by attempting to resolve the default configuration, which is marked as canBeResolved=false in newer versions of Gradle (8.x).
Changes:

  • Replaced configurations.default with configurations.runtimeClasspath in the copyDistribution task to ensure that a resolvable configuration is used.
  • The runtimeClasspath configuration includes all runtime dependencies, ensuring that the correct dependencies and artifacts are copied to the distribution directory.

This change ensures compatibility with Gradle 8.10.2 and prevents build failures related to non-resolvable configurations.

@FDelporte FDelporte merged commit ba86e93 into Pi4J:main Oct 19, 2024
2 checks passed
@FDelporte
Copy link
Member

thanks @dariuszzbyrad !

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

Successfully merging this pull request may close these issues.

2 participants