Join Slack
Can Kotlin projects use the java-library Gradle plugin?
# gradle
n
napperley
07/20/2018, 2:10 AM
Can Kotlin projects use the
java-library
Gradle plugin?
g
gildor
07/20/2018, 2:19 AM
Yes, sure
n
napperley
07/20/2018, 2:30 AM
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
).
napperley
07/20/2018, 2:46 AM
What are the main differences between the
java-library
and
kotlin-jvm
plugin?
g
gildor
07/20/2018, 5:11 AM
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
gildor
07/20/2018, 5:11 AM
kotlin-jvm also uses
java
plugin under the hood
gildor
07/20/2018, 5:12 AM
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
7
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by