Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make nested configuration closures groovy-compatible #43

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

ogolberg
Copy link
Member

@ogolberg ogolberg commented Dec 24, 2023

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:

expediter {
  platform {
    android {
      sdk = 21 // this errors out
    }
  }
}

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
@ogolberg ogolberg merged commit f4858cc into main Dec 24, 2023
1 check passed
@ogolberg ogolberg deleted the fix-nested-actions branch December 24, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant