Skip to content

Add support for dependency scoping in dependency-submission action#816

Open
diegocarba99 wants to merge 1 commit intogradle:mainfrom
diegocarba99:main
Open

Add support for dependency scoping in dependency-submission action#816
diegocarba99 wants to merge 1 commit intogradle:mainfrom
diegocarba99:main

Conversation

@diegocarba99
Copy link

This PR tries to solve #815

It adds 4 new inputs to both setup-gradle and dependency-submission actions, allowing them to set the environment variables the 'GitHub Dependency Graph Gradle Plugin' expects to set scopes of dependencies.

Key Changes:

  • New Configuration Inputs: Added four new inputs to both dependency-submission and setup-gradle actions to control scoping:
    • dependency-graph-runtime-include-projects: Regex to only include specific projects in runtime scope.
    • dependency-graph-runtime-exclude-projects: Regex to exclude specific projects from runtime scope.
    • dependency-graph-runtime-include-configurations: Regex to only include specific configurations in runtime scope.
    • dependency-graph-runtime-exclude-configurations: Regex to exclude specific configurations from runtime scope.
  • Logic Update: Updated the TypeScript action code (configuration.ts, dependency-graph.ts) to pass these new inputs as environment variables (DEPENDENCY_GRAPH_RUNTIME_*) to the underlying Gradle execution.
  • Documentation: Updated docs/dependency-submission.md with detailed usage instructions and examples for the new scoping features.
  • Tests: Added a new integration test case dependency-submission-with-runtime-scope in .github/workflows/integ-test-dependency-submission.yml to verify that the new parameters are correctly passed to the build environment.

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