-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove the generation of unused tree artifacts from the compile step. Tree artifacts, (created by declare_directory) are only useful when an action produces an unknown number of outputs. It this case, this would only result in extra overhead of bundling the produced directories in archives with ever using them. Co-authored-by: Christian Edward Gruber <[email protected]>
- Loading branch information
1 parent
ffcd2b2
commit f5b824e
Showing
2 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright 2018 The Bazel Authors. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
"""This file contains the Kotlin compiler repository definitions. It should not be loaded directly by client workspaces. | ||
""" | ||
|
||
load( | ||
"//kotlin/internal:defs.bzl", | ||
_KT_COMPILER_REPO = "KT_COMPILER_REPO", | ||
) | ||
load( | ||
"@bazel_tools//tools/build_defs/repo:http.bzl", | ||
_http_archive = "http_archive", | ||
_http_file = "http_file", | ||
) | ||
|
||
BAZEL_JAVA_LAUNCHER_VERSION = "0.28.1" | ||
|
||
KOTLIN_CURRENT_COMPILER_RELEASE = { | ||
"urls": [ | ||
"https://github.com/JetBrains/kotlin/releases/download/v1.3.50/kotlin-compiler-1.3.50.zip", | ||
], | ||
"sha256": "69424091a6b7f52d93eed8bba2ace921b02b113dbb71388d704f8180a6bdc6ec", | ||
} | ||
|
||
def kotlin_repositories(compiler_release = KOTLIN_CURRENT_COMPILER_RELEASE): | ||
"""Call this in the WORKSPACE file to setup the Kotlin rules. | ||
Args: | ||
compiler_release: (internal) dict containing "urls" and "sha256" for the Kotlin compiler. | ||
""" | ||
_http_archive( | ||
name = _KT_COMPILER_REPO, | ||
urls = compiler_release["urls"], | ||
sha256 = compiler_release["sha256"], | ||
build_file = "@io_bazel_rules_kotlin//kotlin/internal/repositories:BUILD.com_github_jetbrains_kotlin", | ||
strip_prefix = "kotlinc", | ||
) | ||
|
||
_http_file( | ||
name = "kt_java_stub_template", | ||
urls = [("https://raw.githubusercontent.com/bazelbuild/bazel/" + | ||
BAZEL_JAVA_LAUNCHER_VERSION + | ||
"/src/main/java/com/google/devtools/build/lib/bazel/rules/java/" + | ||
"java_stub_template.txt")], | ||
sha256 = "e6531a6539ec1e38fec5e20523ff4bfc883e1cc0209eb658fe82eb918eb49657", | ||
) |