Extending Groovy class from Kotlin

I had tried extend NpmTask and got same error.