Unverified Commit 982da8e7 authored by daz's avatar daz
Browse files

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.
parent a0fc8606
Loading
Loading
Loading
Loading
+1 −1
Changes for src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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')