theiw
10/24/2018, 7:54 PMWORKSPACE
is as follows: kotlin_1_3 = {
"urls": [
"<https://github.com/JetBrains/kotlin/releases/download/v1.3-rc/kotlin-compiler-1.3.0-rc-57.zip>",
],
"sha256": "f01df0ff86520346bc677c03fd600ee4a5ec657209d82f600049ec658bdccb19",
}
rules_kotlin_version = "47152947883eeebbf2ab93a4fd81e362c18e9242"
git_repository(
name = "io_bazel_rules_kotlin",
remote = "<https://github.com/bazelbuild/rules_kotlin.git>",
commit = rules_kotlin_version
)
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories(compiler_release = kotlin_1_3)
kt_register_toolchains()
theiw
10/24/2018, 7:56 PMBUILD
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_jvm_library")
kt_jvm_library(
name = "future",
srcs = glob(["src/future/*.kt"]),
deps = [],
)
theiw
10/24/2018, 7:57 PM$ bazel build //:future
INFO: Analysed target //:future (0 packages loaded).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_iw/f04982cc20c2b9e2e0acdc7f8dfda686/external/io_bazel_rules_kotlin/src/main/kotlin/io/bazel/kotlin/builder/BUILD:34:1: Building external/io_bazel_rules_kotlin/src/main/kotlin/io/bazel/kotlin/builder/libbuilder.jar (2 source files) and running annotation processors (ComponentProcessor) failed (Exit 1)
error: cannot access NotNull
class file for org.jetbrains.annotations.NotNull not found
Consult the following stack trace for details.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.jetbrains.annotations.NotNull not found
Target //:future failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.508s, Critical Path: 1.25s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
theiw
10/24/2018, 7:58 PMbazel
discovery needed 😄Vladyslav Sitalo
10/24/2018, 7:59 PMShawn
10/24/2018, 7:59 PMtheiw
10/24/2018, 8:05 PMbazel
help right nowShawn
10/24/2018, 8:05 PMShawn
10/24/2018, 8:06 PMtheiw
10/24/2018, 8:06 PMShawn
10/24/2018, 8:06 PMShawn
10/24/2018, 8:07 PMctrl/cmd+k
theiw
10/24/2018, 8:07 PMShawn
10/24/2018, 8:07 PMtheiw
10/24/2018, 8:08 PM