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

Assign dependency scopes based on include/exclude filters #105

Merged
merged 7 commits into from
Jan 28, 2024

Conversation

bigdaz
Copy link
Member

@bigdaz bigdaz commented Jan 28, 2024

Introduces a very simple scoping mechanism based on include/exclude regex filters,
that allows dependencies to be flagged as either 'development' or 'runtime'.
These filters will be set to sensible defaults in gradle/actions/dependency-submission,
and users will be able to override.

Add new filter variables that can be used to categorize a dependency as 'runtime'.
  If not specified or not matched, a 'development' scope is assumed.
To avoid assigned all dependencies to either 'runtime' or 'development' scope,
we leave the current behaviour of assigning no scopes unless the relevant input
parameters are configured.
Using a Regex include filter can be problematic when trying to
_exclude_ a matching entry (or entries).
Adding specific exclude filters matching the current include filters
makes configuration more straightforward.
@bigdaz bigdaz merged commit f837543 into main Jan 28, 2024
15 checks passed
@bigdaz bigdaz deleted the dd/dependency-scopes branch January 28, 2024 16:53
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.

1 participant