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

Gradle Plugin: Allow for one-line direct property definition #34

Open
julioz opened this issue Jun 4, 2020 · 2 comments
Open

Gradle Plugin: Allow for one-line direct property definition #34

julioz opened this issue Jun 4, 2020 · 2 comments
Labels
Gradle Plugin Work related to the Gradle Plugin component hacktoberfest Check out https://hacktoberfest.digitalocean.com and contribute!

Comments

@julioz
Copy link
Owner

julioz commented Jun 4, 2020

Enforced by this (currently ignored) test.

Instead of forcing a full block like for the output format, like

floorPlan {
  outputFormat {
    svg { 
      enabled = true
    }
  }
}

We could allow for

floorPlan {
  outputFormat {
    svg.enabled = value
  }
}

or even simpler:

floorPlan {
  outputFormat.svg.enabled = value
}
@julioz
Copy link
Owner Author

julioz commented Jun 4, 2020

@runningcode Do you know how this feature is called? So far I have been referring to it as "one-liner" 🤣

@julioz julioz added the Gradle Plugin Work related to the Gradle Plugin component label Jun 4, 2020
@runningcode
Copy link
Contributor

:D if the first syntax works, then the one liner will work as well. it is called groovy magic.

@julioz julioz added the hacktoberfest Check out https://hacktoberfest.digitalocean.com and contribute! label Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gradle Plugin Work related to the Gradle Plugin component hacktoberfest Check out https://hacktoberfest.digitalocean.com and contribute!
Projects
None yet
Development

No branches or pull requests

2 participants