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.
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>xjc</id> <goals> <goal>xjc</goal> </goals> </execution> </executions> <configuration> <schemaDirectory>src/main/resources</schemaDirectory> <outputDirectory>src/main/java</outputDirectory> <clearOutputDir>false</clearOutputDir> </configuration> </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