Can Kotlin projects use the java-library Gradle pl...
# gradle
n
Can Kotlin projects use the java-library Gradle plugin?
g
Yes, sure
n
Have a situation where a request came through to restructure the OpenFaaS Kotlin JVM template (https://github.com/napperley/openfaas-kotlin-templates/tree/kotlin-jvm) to match the Java one (https://github.com/openfaas/templates/tree/master/template/java8).
What are the main differences between the java-library and kotlin-jvm plugin?
g
java-library provides additional facilities to encapsulate dependencies: https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_separation but still uses
java
plugin under the hood
kotlin-jvm also uses
java
plugin under the hood
so it should work. And worked at some point before, I tried it. But not 100% sure that everything fine now. But if you have some problems, be free to create an issue