From 177cef6d022506e034ffe75a61a4c85dd08b9d07 Mon Sep 17 00:00:00 2001 From: daz Date: Sun, 28 Jan 2024 10:09:10 -0700 Subject: [PATCH] Provide an override for the dependency-graph plugin version --- ...-actions.github-dependency-graph-gradle-plugin-apply.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/src/resources/init-scripts/gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy b/sources/src/resources/init-scripts/gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy index 1582e3ba..c33079ab 100644 --- a/sources/src/resources/init-scripts/gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy +++ b/sources/src/resources/init-scripts/gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy @@ -4,12 +4,13 @@ buildscript { return System.getProperty(name) ?: System.getenv(envVarName) } def pluginRepositoryUrl = getInputParam('gradle.plugin-repository.url') ?: 'https://plugins.gradle.org/m2' + def dependencyGraphPluginVersion = getInputParam('dependency-graph-plugin.version') ?: '1.1.1' repositories { maven { url pluginRepositoryUrl } } dependencies { - classpath "org.gradle:github-dependency-graph-gradle-plugin:1.1.1" + classpath "org.gradle:github-dependency-graph-gradle-plugin:${dependencyGraphPluginVersion}" } } apply plugin: org.gradle.github.GitHubDependencyGraphPlugin