-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make nested configuration closures groovy-compatible
Per gradle/gradle#27320, for nested Actions to work in Groovy DSL, the nested objects need to be instantiated via Gradle's ObjectFactory instead of directly. This fixes the issue where the following block does not work in Groovy DSL: ```groovy expediter { platform { android { sdk = 21 // this errors out } } } ```
- Loading branch information
Showing
6 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
plugin/src/main/kotlin/com/toasttab/expediter/gradle/config/AndroidSpec.kt
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
14 changes: 9 additions & 5 deletions
14
plugin/src/main/kotlin/com/toasttab/expediter/gradle/config/ExpediterCheckSpec.kt
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