Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Adding dependency graph submission workflow (#3502)

Sanjay Dutt80fa70f2ccf2
diff --git a/.github/workflows/dependency-graph-submission.yml b/.github/workflows/dependency-graph-submission.yml
new file mode 100644
index 00000000000..f95eaa58582
--- /dev/null
+++ b/.github/workflows/dependency-graph-submission.yml
@@ -0,0 +1,27 @@
+name: Dependency Submission
+
+on:
+ push:
+ branches: [ main ]
+
+permissions:
+ contents: write
+
+jobs:
+ dependency-submission:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-java@v4
+ with:
+ distribution: temurin
+ java-version: 21
+
+ - name: Generate and submit dependency graph
+ uses: gradle/actions/dependency-submission@v4
+ env:
+ DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS: "(?i)(^|:)(compileClasspath|runtimeClasspath|testCompileClasspath|testRuntimeClasspath)$"
+ DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS: "(?i)(^|:)(classpath|.*PluginClasspath|kotlinCompilerClasspath|kaptClasspath|annotationProcessor|detachedConfiguration.*)$"
+ DEPENDENCY_GRAPH_RUNTIME_INCLUDE_CONFIGURATIONS: "(?i)(^|:)runtimeClasspath$"
+ DEPENDENCY_GRAPH_RUNTIME_EXCLUDE_CONFIGURATIONS: "(?i)(^|:)testRuntimeClasspath$"