-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Don't shadow the standard gradle 'ext' field on tasks. (#243)
[fix] All Gradle Tasks (and many other things) have a special 'ext' extension, which is of type ExtraPropertiesExtension (see https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionAware.html). Previously the DockerComposeExtension was shadowing this as it was set as a field with name 'ext' on the gradle tasks created by this plugin. ## Before this PR It was not possible to set custom properties on the `generateDockerCompose` task by the usual `generateDockerCompose.ext.foo = "bar"` method supported by all other Gradle tasks because the `GenerateDockerCompose` task had a field `ext` that contained the `DockerComposeExtension`. ## After this PR This PR removes the `ext` field on `GenerateDockerCompose` and `DockerComposeUp` and gets the `DockerComposeExtension` directly from the project.
- Loading branch information
1 parent
1045fd7
commit 3faece4
Showing
4 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters