Skip to content

Instantly share code, notes, and snippets.

@mig35
Created December 12, 2019 04:26
Show Gist options
  • Save mig35/96a12e3ef27ae47489fae8a5670f0d74 to your computer and use it in GitHub Desktop.
Save mig35/96a12e3ef27ae47489fae8a5670f0d74 to your computer and use it in GitHub Desktop.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
kotlin_version = "1.3.61"
kotlin_release_sha = "3901151ad5d94798a268d1771c6c0b7e305a608c2889fc98a674802500597b1c"
rules_kotlin_compiler_release = {
"urls": [
"https://github.com/JetBrains/kotlin/releases/download/v{v}/kotlin-compiler-{v}.zip".format(v = kotlin_version),
],
"sha256": kotlin_release_sha,
}
rules_kotlin_version = "legacy-1.3.0-rc1"
rules_kotlin_sha = "9de078258235ea48021830b1669bbbb678d7c3bdffd3435f4c0817c921a88e42"
http_archive(
name = "io_bazel_rules_kotlin",
urls = ["https://github.com/bazelbuild/rules_kotlin/archive/%s.zip" % rules_kotlin_version],
type = "zip",
strip_prefix = "rules_kotlin-%s" % rules_kotlin_version,
sha256 = rules_kotlin_sha
)
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories(compiler_release = rules_kotlin_compiler_release)
kt_register_toolchains()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment