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): Ignore dependencySources configurations during resolution #8888

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ internal fun Configuration.isRelevant(): Boolean {
// https://gist.github.com/h0tk3y/41c73d1f822378f52f1e6cce8dcf56aa for some background information.
val isDependenciesMetadata = name.endsWith("DependenciesMetadata")

return canBeResolved && !isDeprecatedConfiguration && !isDependenciesMetadata
// Ignore Kotlin Multiplatform Project configurations for resolving source files because by nature not every
// published library has sources variants that can be resolved.
val isDependencySources = name == "dependencySources" || name.endsWith("DependencySources")

return canBeResolved && !isDeprecatedConfiguration && !isDependenciesMetadata && !isDependencySources
}

/**
Expand Down
Loading