FloorPlan icon indicating copy to clipboard operation
FloorPlan copied to clipboard

Gradle Plugin: Allow for one-line direct property definition

Open julioz opened this issue 4 years ago • 2 comments

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 avatar Jun 04 '20 19:06 julioz

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

julioz avatar Jun 04 '20 19:06 julioz

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

runningcode avatar Jun 04 '20 20:06 runningcode