Skip to content

Commit

Permalink
Attempt to make init-script compatible with Gradle 1.12
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bigdaz committed Dec 19, 2023
1 parent a0fc860 commit 982da8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 982da8e

Please sign in to comment.