From 982da8e78c05368c70dac0351bb82647a9e9a5d2 Mon Sep 17 00:00:00 2001 From: daz Date: Tue, 19 Dec 2023 14:10:55 -0700 Subject: [PATCH] Attempt to make init-script compatible with Gradle 1.12 The `PluginManager` type wasn't introduced until Gradle 2.x. Remove this type from the method signature in an attempt to allow this file to be parsed with Gradle 1.12. --- .../gradle-build-action.inject-gradle-enterprise.init.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle b/src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle index 6e40341..279ca72 100644 --- a/src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle +++ b/src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle @@ -168,7 +168,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) { } } -void applyPluginExternally(PluginManager pluginManager, String pluginClassName) { +void applyPluginExternally(def pluginManager, String pluginClassName) { def externallyApplied = 'gradle.enterprise.externally-applied' def oldValue = System.getProperty(externallyApplied) System.setProperty(externallyApplied, 'true')