Skip to content

Commit

Permalink
Limit Dependency Graph support to Gradle v5.2.1 or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Jan 12, 2024
1 parent 0e6b907 commit fdcea9a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ if (getVariable('GITHUB_DEPENDENCY_GRAPH_ENABLED') != "true") {
}

// Do not run for unsupported versions of Gradle
if (GradleVersion.current().baseVersion < GradleVersion.version("5.0")) {
println "::warning::Dependency Graph is not supported for Gradle versions < 5.0. No dependency snapshot will be generated."
if (GradleVersion.current() < GradleVersion.version("5.2.1")) {
println "::warning::Dependency Graph is not supported for ${GradleVersion.current()}. Minimum supported Gradle version is v5.2.1. No dependency snapshot will be generated. "
return
}

Expand Down

0 comments on commit fdcea9a

Please sign in to comment.