rules_kotlin
rules_kotlin copied to clipboard
Make `kt_jvm_binary` produce a *_deploy.jar implicit target
java_binary allows you to build a "fat jar" with all the dependencies bundled , but this is not possible with kt_jvm_binary
A workaround is use java_binary, include your kt library in runtime_deps:
kt_jvm_library( name = "helloworld", srcs = [ "Main.kt", ], )
java_binary( name = "helloworld_main", main_class = "your.kotlin.app.Main", runtime_deps = [ ":helloworld", ], )
then use helloworld_main_deploy.jar