Skip to content

Instantly share code, notes, and snippets.

@berkus
Created May 8, 2024 18:00
Show Gist options
  • Save berkus/acda56f897359f3be75eab5ff096fb9a to your computer and use it in GitHub Desktop.
Save berkus/acda56f897359f3be75eab5ff096fb9a to your computer and use it in GitHub Desktop.
Groovy/Gradle print object properties
def filtered = ['class', 'active']
println theObject.properties
.sort{it.key}
.collect{it}
.findAll{!filtered.contains(it.key)}
.join('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment