How to do a configurations closure in a kotlin build script

I have this in a groovy-based gradle script:

configurations {
    all*.exclude group: 'commons-logging', module: 'commons-logging'
}

How would I do that in a kotlin-based gradle script?