From dd88816c9531aa05ead028d42ab95e518cbb0391 Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Wed, 21 Feb 2024 09:14:26 -0800 Subject: [PATCH] Add "runtime" / "development" scopes to dependency submission (#5174) --- .github/workflows/dependency-submission.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml index 0c53746e58e..634846a22af 100644 --- a/.github/workflows/dependency-submission.yml +++ b/.github/workflows/dependency-submission.yml @@ -31,3 +31,10 @@ jobs: - name: Generate and submit dependency graph uses: gradle/actions/dependency-submission@v3 + env: + # Dependencies derived from :server-jetty-app runtimeClasspath get a "runtime" scope and everything else gets + # a "development" scope. Ideally, gradle would be able to pass along the finer dependency details (for + # example, the exact configuration scopes), but this is a limitation of GitHub dependency submissions API, see + # note in https://github.com/gradle/actions/tree/main/dependency-submission#limiting-the-dependencies-that-appear-in-the-dependency-graph + DEPENDENCY_GRAPH_RUNTIME_INCLUDE_PROJECTS: ':server-jetty-app' + DEPENDENCY_GRAPH_RUNTIME_INCLUDE_CONFIGURATIONS: 'runtimeClasspath'