Jaxb2 Plugin in Gradle kotlin


I am trying to develop soap web services using Gradle with kotlin. But I am unable to get gradle jaxb2 plugin. I tried using gradle mentioned in spring.io site but getting issues in build.gradle.kts. Can anyone reply with gradle with kotlin exact plugin that performs same as maven plugin mention below.

Maven plugin:


I need the same in Gradle with kotlin

I have tried using https://github.com/gradle-community/jaxb2 but facing some errors,

For Request-Classes - Expression ‘‘request-classes’’ of type ‘Char’ cannot be invoked as a function. The function ‘invoke()’ is not found
Too many characters in a character literal ‘‘request-classes’’

basePackage: Unresolved reference: basePackage
schema: Unresolved reference: schema