Skip to content

Commit

Permalink
Introduce release_archive for packaging the Kotlin rules.
Browse files Browse the repository at this point in the history
Added //:rules_kotlin_release to build a release.

Issue: bazelbuild#269 (comment)
  • Loading branch information
Corbin Smith committed Feb 7, 2020
1 parent b932b84 commit 6dad593
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
6 changes: 0 additions & 6 deletions examples/android/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,3 @@ http_archive(
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
],
)

http_archive(
name = "rules_pkg",
url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
)
3 changes: 3 additions & 0 deletions examples/node/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_reg
kotlin_repositories()
kt_register_toolchains()

load("@io_bazel_rules_kotlin//third_party/jvm:workspace.bzl", "maven_dependencies")
maven_dependencies()

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_nodejs",
Expand Down
3 changes: 3 additions & 0 deletions examples/trivial/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ kotlin_repositories()

kt_register_toolchains()

load("@io_bazel_rules_kotlin//third_party/jvm:workspace.bzl", "maven_dependencies")
maven_dependencies()

RULES_JVM_EXTERNAL_TAG = "2.7"

RULES_JVM_EXTERNAL_SHA = "f04b1466a00a2845106801e0c5cec96841f49ea4e7d1df88dc8e4bf31523df74"
Expand Down
4 changes: 3 additions & 1 deletion kotlin/internal/repositories/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ load(
"//third_party/jvm:workspace.bzl",
_maven_dependencies = "maven_dependencies",
)

load(
"//kotlin/internal/repositories:nomaven_repositories.bzl",
"KOTLIN_CURRENT_COMPILER_RELEASE",
_kotlin_repositories_no_maven = "kotlin_repositories",
"KOTLIN_CURRENT_COMPILER_RELEASE",
)


def github_archive(name, repo, commit, build_file_content = None, sha256 = None):
if build_file_content:
_http_archive(
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ java_binary(
":compiler_lib.jar",
"@com_github_jetbrains_kotlin//:lib/kotlin-compiler.jar",
],
main_class = "io.bazel.kotlin.builder.KotlinBuilderMain",
runtime_deps = [":builder_jar_jar"],
jvm_flags = [
"-XX:+IgnoreUnrecognizedVMOptions",
"--add-opens=java.base/java.nio=ALL-UNNAMED",
Expand Down

0 comments on commit 6dad593

Please sign in to comment.