How can I use method in extension in custom plugin, I would like to have the same functionality as in sonar plugin:
void withProjectProperties(Closure block) {
propertyProcessors << block
}
I was trying something like this but it doesn’t work:
Map <String, String> sonarProps = project.sonarutils.cpp.sonarProperties
for (Map.Entry<String, String>
entry:
sonarProps)
{
project.sonar.project.withProjectProperties { props ->
props[entry.key] = entry.value
}
}