Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 982da8e

Browse files
committed
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.
1 parent a0fc860 commit 982da8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/init-scripts/gradle-build-action.inject-gradle-enterprise.init.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
168168
}
169169
}
170170

171-
void applyPluginExternally(PluginManager pluginManager, String pluginClassName) {
171+
void applyPluginExternally(def pluginManager, String pluginClassName) {
172172
def externallyApplied = 'gradle.enterprise.externally-applied'
173173
def oldValue = System.getProperty(externallyApplied)
174174
System.setProperty(externallyApplied, 'true')

0 commit comments

Comments
 (0)