Overview
Bazel

Overview

Kotlin Rules

Rules

kt_jvm_binary

Builds a Java archive ("jar file"), plus a wrapper shell script with the same name as the rule. The wrapper shell script uses a classpath that includes, among other things, a jar file for each library on which the binary depends.

kt_jvm_import

(experimental) Import Kotlin jars.

kt_jvm_library

This rule compiles and links Kotlin and Java sources into a .jar file.

kt_jvm_test

Setup a simple kotlin_test.

Macros

kotlin_repositories

Call this in the WORKSPACE file to setup the Kotlin rules.

kt_register_toolchains

register all default toolchains

toolchains Rules

Rules

kt_toolchain

The kotlin jvm toolchain

Macros

define_kt_toolchain

Define a Kotlin JVM Toolchain, the name is used in the toolchain rule so can be used to register the toolchain in the WORKSPACE file.