From fdcea9a1bd0ddacf64a442506f0b7259c52f84b9 Mon Sep 17 00:00:00 2001 From: daz Date: Thu, 11 Jan 2024 21:18:44 -0700 Subject: [PATCH] Limit Dependency Graph support to Gradle v5.2.1 or higher --- .../gradle-build-action.github-dependency-graph.init.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/init-scripts/gradle-build-action.github-dependency-graph.init.gradle b/src/resources/init-scripts/gradle-build-action.github-dependency-graph.init.gradle index 56fd2627..0fb1dc51 100644 --- a/src/resources/init-scripts/gradle-build-action.github-dependency-graph.init.gradle +++ b/src/resources/init-scripts/gradle-build-action.github-dependency-graph.init.gradle @@ -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 }