spring-cloud-contract
spring-cloud-contract copied to clipboard
Kotlin support should not require cross-compilations
The Kotlin support in Spring Cloud Contract requires to enable cross-compilations as assets are generated in Java. Enabling that is not very idiomatic and the setup is quite involved, especially with Maven.
See https://github.com/spring-io/start.spring.io/issues/278
Unless we make it possible to generate tests in Kotlin then we won't be able to achieve this without cross compilation, right @TYsewyn ?
Unfortunately that's correct because SCC is only able to generate the tests in either Groovy or Java. Luckily there is already a PR (https://github.com/spring-cloud/spring-cloud-contract/pull/1169) in progress, but I don't think it will make it to Hoxton.RELEASE
.
@marcingrzejszczak, I think with the Gradle plugin changes as part of https://github.com/spring-cloud/spring-cloud-contract/commit/7804933b21d69a3c61a3198fe297f1f2e65ff38c this should now be a bit easier to achieve as it only would require changes to core code and the plugin will automatically support it.
Can't speak to the Maven plugin part though.