diff --git a/README.md b/README.md index 4a2558baf..5c972078e 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,31 @@ _(e.g. Maven artifacts)_ Third party (external) artifacts can be brought in with systems such as [`rules_jvm_external`](https://github.com/bazelbuild/rules_jvm_external) or [`bazel_maven_repository`](https://github.com/square/bazel_maven_repository) or [`bazel-deps`](https://github.com/johnynek/bazel-deps), but make sure the version you use doesn't naively use `java_import`, as this will cause bazel to make an interface-only (`ijar`), or ABI jar, and the native `ijar` tool does not know about kotlin metadata with respect to inlined functions, and will remove method bodies inappropriately. Recent versions of `rules_jvm_external` and `bazel_maven_repository` are known to work with Kotlin. +# Development Setup Guide +To use the rules directly from the rules_kotlin workspace (i.e. not the release artifact) additional dependency downloads are required. + +In the project's `WORKSPACE`, change the setup: +```python +load("//kotlin:dependencies.bzl", "kt_download_local_dev_dependencies") +kt_download_local_dev_dependencies() + + + +rules_kotlin_version = "legacy-1.3.0-rc4" +rules_kotlin_sha = "fe32ced5273bcc2f9e41cea65a28a9184a77f3bc30fea8a5c47b3d3bfc801dff" +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() # if you want the default. Otherwise see custom kotlinc distribution below +kt_register_toolchains() # to use the default toolchain, otherwise see toolchains below +``` + ## Examples Examples can be found in the [examples directory](https://github.com/bazelbuild/rules_kotlin/tree/master/examples), including usage with Android, Dagger, Node-JS, etc. @@ -157,4 +182,3 @@ This project is licensed under the [Apache 2.0 license](LICENSE), as are all con See the [CONTRIBUTING](CONTRIBUTING.md) doc for information about how to contribute to this project. - diff --git a/WORKSPACE b/WORKSPACE index 4c0af828e..2dde36617 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -13,126 +13,20 @@ # limitations under the License. workspace(name = "io_bazel_rules_kotlin") -RULES_NODEJS_VERSION = "0.36.1" -RULES_NODEJS_SHA = "3356c6b767403392bab018ce91625f6d15ff8f11c6d772dc84bc9cada01c669a" -BAZEL_TOOLCHAINS_VERSION = "be10bee3010494721f08a0fccd7f57411a1e773e" -BAZEL_TOOLCHAINS_SHA = "5962fe677a43226c409316fcb321d668fc4b7fa97cb1f9ef45e7dc2676097b26" +load("//kotlin:dependencies.bzl", "kt_download_local_dev_dependencies") +kt_download_local_dev_dependencies() -SKYLIB_VERSION = "0.8.0" -SKYLIB_SHA = "2ea8a5ed2b448baf4a6855d3ce049c4c452a6470b1efd1504fdb7c1c134d220a" - -PROTOBUF_GIT_COMMIT = "09745575a923640154bcf307fba8aedff47f240a" # v3.8.0, as of 2019-05-28 -PROTOBUF_SHA = "76ee4ba47dec6146872b6cd051ae5bd12897ef0b1523d5aeb56d81a5a4ca885a" - -BAZEL_DEPS_VERSION = "0.1.0" -BAZEL_DEPS_SHA = "05498224710808be9687f5b9a906d11dd29ad592020246d4cd1a26eeaed0735e" - - -local_repository( - name = "node_example", - path = "examples/node", -) - -load("//kotlin/internal/repositories:repositories.bzl", "github_archive") - -github_archive( - name = "com_google_protobuf", - commit = PROTOBUF_GIT_COMMIT, - repo = "google/protobuf", - sha256 = PROTOBUF_SHA, -) - -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") - -protobuf_deps() - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_jar") - -http_archive( - name = "bazel_skylib", - urls = ["https://github.com/bazelbuild/bazel-skylib/archive/%s.tar.gz" % SKYLIB_VERSION], - strip_prefix = "bazel-skylib-%s" % SKYLIB_VERSION, - sha256 = SKYLIB_SHA, -) - -http_jar( - name = "bazel_deps", - sha256 = BAZEL_DEPS_SHA, - url = "https://github.com/hsyed/bazel-deps/releases/download/v%s/parseproject_deploy.jar" % BAZEL_DEPS_VERSION, -) - -http_archive( - name = "bazel_toolchains", - sha256 = BAZEL_TOOLCHAINS_SHA, - strip_prefix = "bazel-toolchains-%s" % BAZEL_TOOLCHAINS_VERSION, - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/%s.tar.gz" % BAZEL_TOOLCHAINS_VERSION, - "https://github.com/bazelbuild/bazel-toolchains/archive/%s.tar.gz" % BAZEL_TOOLCHAINS_VERSION, - ], -) - -load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig") +load("//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains") +kotlin_repositories() +kt_register_toolchains() # Creates toolchain configuration for remote execution with BuildKite CI # for rbe_ubuntu1604 +load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig") rbe_autoconfig( name = "buildkite_config", ) -load( - "//third_party/jvm:workspace.bzl", "maven_dependencies", -) - -maven_dependencies() -load("//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains") - -kotlin_repositories() - -kt_register_toolchains() - -# The following are to support building and running nodejs examples from src/test - -http_archive( - name = "build_bazel_rules_nodejs", - sha256 = RULES_NODEJS_SHA, - url = "https://github.com/bazelbuild/rules_nodejs/releases/download/{0}/rules_nodejs-{0}.tar.gz".format(RULES_NODEJS_VERSION), -) - -load("@build_bazel_rules_nodejs//:defs.bzl", "yarn_install") - -yarn_install( - name = "node_ws", - package_json = "@node_example//:package.json", - yarn_lock = "@node_example//:yarn.lock", -) - -RULES_JVM_EXTERNAL_TAG = "2.7" - -RULES_JVM_EXTERNAL_SHA = "f04b1466a00a2845106801e0c5cec96841f49ea4e7d1df88dc8e4bf31523df74" - -http_archive( - name = "rules_jvm_external", - sha256 = RULES_JVM_EXTERNAL_SHA, - strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, - url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, -) - -load("@rules_jvm_external//:defs.bzl", "maven_install") - -maven_install( - artifacts = [ - "org.jetbrains.kotlinx:atomicfu-js:0.13.1", - "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:1.3.2", - ], - repositories = [ - "https://maven-central.storage.googleapis.com/repos/central/data/", - "https://repo1.maven.org/maven2", - ], -) - -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", -) \ No newline at end of file +android_sdk_repository(name = "androidsdk") +android_ndk_repository(name = "androidndk") \ No newline at end of file diff --git a/examples/android/WORKSPACE b/examples/android/WORKSPACE index f701c3868..01c672342 100644 --- a/examples/android/WORKSPACE +++ b/examples/android/WORKSPACE @@ -52,6 +52,10 @@ local_repository( path = "../..", ) + +load("@io_bazel_rules_kotlin//kotlin:dependencies.bzl", "kt_download_local_dev_dependencies") +kt_download_local_dev_dependencies() + load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains") kotlin_repositories() diff --git a/examples/dagger/BUILD b/examples/dagger/BUILD index 2e1ab62b7..1d567601d 100644 --- a/examples/dagger/BUILD +++ b/examples/dagger/BUILD @@ -17,27 +17,6 @@ package(default_visibility = ["//visibility:private"]) load("//kotlin:kotlin.bzl", "kt_jvm_library") -java_plugin( - name = "dagger_plugin", - processor_class = "dagger.internal.codegen.ComponentProcessor", - deps = [ - "//third_party/jvm/com/google/dagger", - "//third_party/jvm/com/google/dagger:dagger_compiler", - "//third_party/jvm/com/google/dagger:dagger_producers", - "//third_party/jvm/javax/inject:javax_inject", - "@//third_party/jvm/com/google/guava", - ], -) - -java_library( - name = "dagger_lib", - exported_plugins = ["dagger_plugin"], - exports = [ - "//third_party/jvm/com/google/dagger", - "//third_party/jvm/javax/inject:javax_inject", - ], -) - # Generate a srcjar to validate intellij plugin correctly attaches it. genrule( name = "tea_lib_src", @@ -62,8 +41,8 @@ kt_jvm_library( ":tea_lib_src", ], deps = [ - ":dagger_lib", - "//third_party/jvm/org/jetbrains/kotlinx:kotlinx_coroutines_core", + "//third_party:dagger", + "@kotlin_rules_maven//:org_jetbrains_kotlinx_kotlinx_coroutines_core", ], ) diff --git a/examples/node/WORKSPACE b/examples/node/WORKSPACE index c04a1fcee..85a682561 100644 --- a/examples/node/WORKSPACE +++ b/examples/node/WORKSPACE @@ -1,40 +1,20 @@ workspace(name = "kotlin_node_examples") +# Directly load the kotlin rules from the parent repo. local_repository( name = "io_bazel_rules_kotlin", path = "../.." ) +load("@io_bazel_rules_kotlin//kotlin:dependencies.bzl", "kt_download_local_dev_dependencies") +kt_download_local_dev_dependencies() + load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains") kotlin_repositories() kt_register_toolchains() +# Node example dependencies load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -http_archive( - name = "build_bazel_rules_nodejs", - sha256 = "3356c6b767403392bab018ce91625f6d15ff8f11c6d772dc84bc9cada01c669a", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.36.1/rules_nodejs-0.36.1.tar.gz"], -) - -load("@build_bazel_rules_nodejs//:defs.bzl", "yarn_install") - -yarn_install( - name = "node_ws", - package_json = "//:package.json", - yarn_lock = "//:yarn.lock", -) - -RULES_JVM_EXTERNAL_TAG = "2.7" - -RULES_JVM_EXTERNAL_SHA = "f04b1466a00a2845106801e0c5cec96841f49ea4e7d1df88dc8e4bf31523df74" - -http_archive( - name = "rules_jvm_external", - sha256 = RULES_JVM_EXTERNAL_SHA, - strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, - url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, -) - load("@rules_jvm_external//:defs.bzl", "maven_install") maven_install( @@ -49,7 +29,15 @@ maven_install( ) 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", + name = "build_bazel_rules_nodejs", + sha256 = "3356c6b767403392bab018ce91625f6d15ff8f11c6d772dc84bc9cada01c669a", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.36.1/rules_nodejs-0.36.1.tar.gz"], +) + +load("@build_bazel_rules_nodejs//:defs.bzl", "yarn_install") + +yarn_install( + name = "node_ws", + package_json = "//:package.json", + yarn_lock = "//:yarn.lock", ) \ No newline at end of file diff --git a/examples/trivial/WORKSPACE b/examples/trivial/WORKSPACE index 5c575e7eb..e43c98aad 100644 --- a/examples/trivial/WORKSPACE +++ b/examples/trivial/WORKSPACE @@ -5,6 +5,9 @@ local_repository( path = "../..", ) +load("@io_bazel_rules_kotlin//kotlin:dependencies.bzl", "kt_download_local_dev_dependencies") +kt_download_local_dev_dependencies() + load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains") kotlin_repositories() diff --git a/kotlin/dependencies.bzl b/kotlin/dependencies.bzl new file mode 100644 index 000000000..c1aa2984d --- /dev/null +++ b/kotlin/dependencies.bzl @@ -0,0 +1,19 @@ +# 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. + + +load("//kotlin/internal/repositories:download.bzl", + _kt_download_local_dev_dependencies="kt_download_local_dev_dependencies") + +kt_download_local_dev_dependencies=_kt_download_local_dev_dependencies \ No newline at end of file diff --git a/kotlin/internal/jvm/android.bzl b/kotlin/internal/jvm/android.bzl index a1fdcfc17..ab329a713 100644 --- a/kotlin/internal/jvm/android.bzl +++ b/kotlin/internal/jvm/android.bzl @@ -22,8 +22,8 @@ def _kt_android_artifact(name, srcs = [], deps = [], plugins = [], **kwargs): """ base_name = name + "_base" kt_name = name + "_kt" - - base_deps = deps + ["@io_bazel_rules_kotlin//third_party:android_sdk"] + # TODO(bazelbuild/rules_kotlin/issues/273): This should be retrieved from a provider. + base_deps = deps + [ "@io_bazel_rules_kotlin//third_party:android_sdk" ] native.android_library( name = base_name, diff --git a/kotlin/internal/repositories/BUILD b/kotlin/internal/repositories/BUILD index 36fec980f..cd4191ac1 100644 --- a/kotlin/internal/repositories/BUILD +++ b/kotlin/internal/repositories/BUILD @@ -18,8 +18,9 @@ release_archive( srcs = [ "BUILD", "BUILD.com_github_jetbrains_kotlin", + "download.bzl" ], src_map = { - "nomaven_repositories.bzl": "repositories.bzl", + "release_repositories.bzl": "repositories.bzl", }, ) diff --git a/kotlin/internal/repositories/download.bzl b/kotlin/internal/repositories/download.bzl new file mode 100644 index 000000000..99d90f2b5 --- /dev/null +++ b/kotlin/internal/repositories/download.bzl @@ -0,0 +1,106 @@ +# Copyright 2020 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. +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file", "http_jar") +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + +RULES_NODEJS_VERSION = "0.36.1" +RULES_NODEJS_SHA = "3356c6b767403392bab018ce91625f6d15ff8f11c6d772dc84bc9cada01c669a" + +BAZEL_TOOLCHAINS_VERSION = "be10bee3010494721f08a0fccd7f57411a1e773e" +BAZEL_TOOLCHAINS_SHA = "5962fe677a43226c409316fcb321d668fc4b7fa97cb1f9ef45e7dc2676097b26" + +SKYLIB_VERSION = "0.8.0" +SKYLIB_SHA = "2ea8a5ed2b448baf4a6855d3ce049c4c452a6470b1efd1504fdb7c1c134d220a" + +PROTOBUF_GIT_COMMIT = "09745575a923640154bcf307fba8aedff47f240a" # v3.8.0, as of 2019-05-28 +PROTOBUF_SHA = "76ee4ba47dec6146872b6cd051ae5bd12897ef0b1523d5aeb56d81a5a4ca885a" + +BAZEL_DEPS_VERSION = "0.1.0" +BAZEL_DEPS_SHA = "05498224710808be9687f5b9a906d11dd29ad592020246d4cd1a26eeaed0735e" + +RULES_JVM_EXTERNAL_TAG = "2.7" +RULES_JVM_EXTERNAL_SHA = "f04b1466a00a2845106801e0c5cec96841f49ea4e7d1df88dc8e4bf31523df74" + +def kt_download_local_dev_dependencies(): + """ + Downloads all necessary http_* artifacts for rules_kotlin dev configuration. + + Must be called before setup_dependencies in the WORKSPACE. + """ + maybe( + http_archive, + name = "com_google_protobuf", + sha256 = "b404fe166de66e9a5e6dab43dc637070f950cdba2a8a4c9ed9add354ed4f6525", + strip_prefix = "protobuf-b4f193788c9f0f05d7e0879ea96cd738630e5d51", + url = "https://github.com/protocolbuffers/protobuf/archive/b4f193788c9f0f05d7e0879ea96cd738630e5d51.zip", + ) + + maybe( + http_archive, + name = "rules_proto", + sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208", + strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", + "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", + ], + ) + + maybe( + http_archive, + name = "bazel_skylib", + urls = ["https://github.com/bazelbuild/bazel-skylib/archive/%s.tar.gz" % SKYLIB_VERSION], + strip_prefix = "bazel-skylib-%s" % SKYLIB_VERSION, + sha256 = SKYLIB_SHA, + ) + + maybe( + http_jar, + name = "bazel_deps", + sha256 = BAZEL_DEPS_SHA, + url = "https://github.com/hsyed/bazel-deps/releases/download/v%s/parseproject_deploy.jar" % BAZEL_DEPS_VERSION, + ) + + maybe( + http_archive, + name = "bazel_toolchains", + sha256 = BAZEL_TOOLCHAINS_SHA, + strip_prefix = "bazel-toolchains-%s" % BAZEL_TOOLCHAINS_VERSION, + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/%s.tar.gz" % BAZEL_TOOLCHAINS_VERSION, + "https://github.com/bazelbuild/bazel-toolchains/archive/%s.tar.gz" % BAZEL_TOOLCHAINS_VERSION, + ], + ) + + maybe( + http_archive, + name = "build_bazel_rules_nodejs", + sha256 = RULES_NODEJS_SHA, + url = "https://github.com/bazelbuild/rules_nodejs/releases/download/{0}/rules_nodejs-{0}.tar.gz".format(RULES_NODEJS_VERSION), + ) + + maybe( + http_archive, + name = "rules_jvm_external", + sha256 = RULES_JVM_EXTERNAL_SHA, + strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, + url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, + ) + + maybe( + 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", + ) diff --git a/kotlin/internal/repositories/http_java_proto_file.bzl b/kotlin/internal/repositories/http_java_proto_file.bzl new file mode 100644 index 000000000..3c2a2d03e --- /dev/null +++ b/kotlin/internal/repositories/http_java_proto_file.bzl @@ -0,0 +1,105 @@ +# Copyright 2020 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. + +def _http_java_proto_file_impl(repo_ctx): + """ See documentation below for usage. """ + repo_ctx.download( + sha256 = repo_ctx.attr.sha256, + url = repo_ctx.attr.urls, + output = repo_ctx.attr.name + ".proto", + ) + repo_ctx.file("WORKSPACE", content = """ +workspace(name = "{name}") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") + +http_archive( + name = "rules_proto", + sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208", + strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", + "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", + ], +) +load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") +rules_proto_dependencies() +rules_proto_toolchains() + """.format( + name = repo_ctx.name, + )) + repo_ctx.file("BUILD", content = """ +package(default_visibility = ["//visibility:public"]) + +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@rules_java//java:defs.bzl", "java_proto_library") + +proto_library( + name = "proto", + srcs = glob(["*.proto"]), +) + +java_proto_library( + name = "java_proto", + deps = [":proto"], +) +""") + +http_java_proto_file = repository_rule( + doc = """Downloads a proto file from an outside source and provides a java_proto_library in a repository. + + The java_proto_library will be made available as @//:proto. + + Example: + + WORKSPACE: + load("//kotlin/internal/repositories/http_java_proto_file.bzl", "http_java_proto_file") + + http_java_proto_file( + name = "oysters", + urls = [ + "https://west.ocean/mollusc.proto", + "https://futher_west.ocean/mollusc.proto", + ] + ) + + BUILD.bazel: + + java_library( + name = "walrus", + srcs = [...], + deps = [ + "@oysters//:proto" + ] + ) + + """, + implementation = _http_java_proto_file_impl, + attrs = { + "sha256": attr.string( + doc = """The expected SHA-256 of the file downloaded. + + This must match the SHA-256 of the file downloaded. _It is a security risk + to omit the SHA-256 as remote files can change._ At best omitting this + field will make your build non-hermetic. It is optional to make development + easier but should be set before shipping.""", + ), + "urls": attr.string_list( + mandatory = True, + doc = """A list of URLs to a file that will be made available to Bazel. + + Each entry must be a file, http or https URL. Redirections are followed. + Authentication is not supported.""", + ), + }, +) diff --git a/kotlin/internal/repositories/nomaven_repositories.bzl b/kotlin/internal/repositories/release_repositories.bzl similarity index 100% rename from kotlin/internal/repositories/nomaven_repositories.bzl rename to kotlin/internal/repositories/release_repositories.bzl diff --git a/kotlin/internal/repositories/repositories.bzl b/kotlin/internal/repositories/repositories.bzl index 2aec6e04c..1030709bc 100644 --- a/kotlin/internal/repositories/repositories.bzl +++ b/kotlin/internal/repositories/repositories.bzl @@ -13,50 +13,18 @@ # limitations under the License. """This file contains the Kotlin compiler repository definitions. It should not be loaded directly by client workspaces. """ - -load( - "@bazel_tools//tools/build_defs/repo:http.bzl", - _http_archive = "http_archive", - _http_file = "http_file", -) -load( - "//kotlin/internal:defs.bzl", - _KT_COMPILER_REPO = "KT_COMPILER_REPO", -) -load( - "//third_party/jvm:workspace.bzl", - _maven_dependencies = "maven_dependencies", -) +load("//kotlin/internal/repositories:setup.bzl", "kt_configure") load( - "//kotlin/internal/repositories:nomaven_repositories.bzl", + "//kotlin/internal/repositories:release_repositories.bzl", + _release_kotlin_repositories = "kotlin_repositories", "KOTLIN_CURRENT_COMPILER_RELEASE", - _kotlin_repositories_no_maven = "kotlin_repositories", ) -def github_archive(name, repo, commit, build_file_content = None, sha256 = None): - if build_file_content: - _http_archive( - name = name, - strip_prefix = "%s-%s" % (repo.split("/")[1], commit), - url = "https://github.com/%s/archive/%s.zip" % (repo, commit), - type = "zip", - build_file_content = build_file_content, - sha256 = sha256, - ) - else: - _http_archive( - name = name, - strip_prefix = "%s-%s" % (repo.split("/")[1], commit), - url = "https://github.com/%s/archive/%s.zip" % (repo, commit), - type = "zip", - sha256 = sha256, - ) - 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. """ - _maven_dependencies() - _kotlin_repositories_no_maven(compiler_release) + kt_configure() + _release_kotlin_repositories(compiler_release) diff --git a/kotlin/internal/repositories/setup.bzl b/kotlin/internal/repositories/setup.bzl new file mode 100644 index 000000000..98e01350e --- /dev/null +++ b/kotlin/internal/repositories/setup.bzl @@ -0,0 +1,63 @@ +# Copyright 2020 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. + +load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") +load("@rules_jvm_external//:defs.bzl", "maven_install") +load("//kotlin/internal/repositories:http_java_proto_file.bzl", "http_java_proto_file") + +def kt_configure(): + """Setup dependencies. Must be called AFTER kt_download_local_dev_dependencies() """ + maven_install( + name = "kotlin_rules_maven", + fetch_sources = True, + artifacts = [ + "org.jetbrains.kotlinx:atomicfu-js:0.13.1", + "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:1.3.2", + "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1", + "com.google.code.findbugs:jsr305:3.0.2", + "junit:junit:4.13-beta-3", + "com.google.protobuf:protobuf-java:3.6.0", + "com.google.protobuf:protobuf-java-util:3.6.0", + "com.google.guava:guava:27.1-jre", + "com.google.truth:truth:0.45", + "com.google.auto.service:auto-service:1.0-rc5", + "com.google.auto.service:auto-service-annotations:1.0-rc5", + "com.google.auto.value:auto-value:1.6.5", + "com.google.auto.value:auto-value-annotations:1.6.5", + "com.google.dagger:dagger:2.26", + "com.google.dagger:dagger-compiler:2.26", + "com.google.dagger:dagger-producers:2.26", + "javax.inject:javax.inject:1", + "org.pantsbuild:jarjar:1.7.2", + ], + repositories = [ + "https://maven-central.storage.googleapis.com/repos/central/data/", + "https://repo1.maven.org/maven2", + ], + ) + + rules_proto_dependencies() + rules_proto_toolchains() + + http_java_proto_file( + name = "deps", + sha256 = "b861dbce04177df9e4b7204876b2f27e18f40eb6d20b3dffefecdd2baf3cfe92", + urls = ["https://raw.githubusercontent.com/bazelbuild/bazel/2.0.0/src/main/protobuf/deps.proto"], + ) + + http_java_proto_file( + name = "worker_protocol", + sha256 = "1157c93666f98cfcfcc9f7b073b8dac5bbd50e18f5ab981e93c71e03ed08f304", + urls = ["https://raw.githubusercontent.com/bazelbuild/bazel/2.0.0/src/main/protobuf/worker_protocol.proto"], + ) diff --git a/src/main/kotlin/io/bazel/kotlin/builder/BUILD b/src/main/kotlin/io/bazel/kotlin/builder/BUILD index 7f9ea786e..385295d17 100644 --- a/src/main/kotlin/io/bazel/kotlin/builder/BUILD +++ b/src/main/kotlin/io/bazel/kotlin/builder/BUILD @@ -22,13 +22,13 @@ kt_bootstrap_library( "utils/**/*.kt", ]), deps = [ - "//src/main/protobuf:deps", - "//src/main/protobuf:kotlin_model", - "//src/main/protobuf:worker", + "//src/main/protobuf:deps_java_proto", + "//src/main/protobuf:kotlin_model_java_proto", + "//src/main/protobuf:worker_protocol_java_proto", "@com_github_jetbrains_kotlin//:kotlin-preloader", - "@io_bazel_rules_kotlin_com_google_protobuf_protobuf_java//jar", - "@io_bazel_rules_kotlin_com_google_protobuf_protobuf_java_util//jar", - "@io_bazel_rules_kotlin_javax_inject_javax_inject//jar", + "@kotlin_rules_maven//:com_google_protobuf_protobuf_java", + "@kotlin_rules_maven//:com_google_protobuf_protobuf_java_util", + "@kotlin_rules_maven//:javax_inject_javax_inject", ], ) @@ -43,10 +43,12 @@ java_library( ], deps = [ ":builder_kt", - "//src/main/protobuf:kotlin_model", + "//src/main/protobuf:deps_java_proto", + "//src/main/protobuf:kotlin_model_java_proto", + "//src/main/protobuf:worker_protocol_java_proto", "//third_party:dagger", "@com_github_jetbrains_kotlin//:annotations", "@com_github_jetbrains_kotlin//:kotlin-stdlib", - "@io_bazel_rules_kotlin_com_google_protobuf_protobuf_java//jar", + "@kotlin_rules_maven//:javax_inject_javax_inject", ], ) diff --git a/src/main/protobuf/BUILD b/src/main/protobuf/BUILD index 3ac044207..2027df051 100644 --- a/src/main/protobuf/BUILD +++ b/src/main/protobuf/BUILD @@ -15,6 +15,19 @@ load("@rules_java//java:defs.bzl", "java_import") package(default_visibility = ["//visibility:public"]) +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@rules_java//java:defs.bzl", "java_proto_library") + +alias( + name = "deps_java_proto", + actual = "@deps//:java_proto", +) + +alias( + name = "worker_protocol_java_proto", + actual = "@worker_protocol//:java_proto", +) + proto_library( name = "kotlin_model_proto", srcs = [":kotlin_model.proto"], @@ -26,32 +39,11 @@ java_proto_library( deps = [":kotlin_model_proto"], ) -_PROTO_LIBS = [ - "deps", - "worker_protocol", -] - -[proto_library( - name = "%s_proto" % lib, - srcs = ["%s.proto" % lib], -) for lib in _PROTO_LIBS] - -[java_proto_library( - name = "%s_java_proto" % lib, - deps = ["%s_proto" % lib], -) for lib in _PROTO_LIBS] - -java_import( - name = "deps", - jars = ["jars/libdeps_proto-speed.jar"], -) - -java_import( - name = "worker", - jars = ["jars/libworker_protocol_proto-speed.jar"], -) - -java_import( - name = "kotlin_model", - jars = ["jars/libkotlin_model_proto-speed.jar"], +java_library( + name = "protobuf", + exports = [ + ":deps_java_proto", + ":kotlin_model_java_proto", + ":worker_protocol_java_proto", + ], ) diff --git a/src/test/data/jvm/basic/BUILD b/src/test/data/jvm/basic/BUILD index e4c00c8f1..5a3764e00 100644 --- a/src/test/data/jvm/basic/BUILD +++ b/src/test/data/jvm/basic/BUILD @@ -73,13 +73,13 @@ kt_jvm_library( kt_jvm_library( name = "propagation_test_exporter_lib", srcs = ["propagation/Stub.kt"], - exports = ["//third_party/jvm/junit"], + exports = ["@kotlin_rules_maven//:junit_junit"], ) kt_jvm_library( name = "propagation_test_runtime_lib", srcs = ["propagation/Stub.kt"], - runtime_deps = ["//third_party/jvm/junit"], + runtime_deps = ["@kotlin_rules_maven//:junit_junit"], ) java_binary( diff --git a/src/test/data/jvm/kapt/BUILD b/src/test/data/jvm/kapt/BUILD index 2a7d786fb..dc3d7e557 100644 --- a/src/test/data/jvm/kapt/BUILD +++ b/src/test/data/jvm/kapt/BUILD @@ -20,27 +20,27 @@ java_plugin( name = "autovalue", generates_api = 1, processor_class = "com.google.auto.value.processor.AutoValueProcessor", - deps = ["//third_party/jvm/com/google/auto/value:auto_value"], + deps = ["@kotlin_rules_maven//:com_google_auto_value_auto_value"], ) java_plugin( name = "autoservice", generates_api = 0, processor_class = "com.google.auto.service.processor.AutoServiceProcessor", - deps = ["//third_party/jvm/com/google/auto/service:auto_service"], + deps = ["@kotlin_rules_maven//:com_google_auto_service_auto_service"], ) java_plugin( name = "autovalue_no_processor_class", generates_api = 1, - deps = ["//third_party/jvm/com/google/auto/value:auto_value_annotations"], + deps = ["@kotlin_rules_maven//:com_google_auto_value_auto_value_annotations"], ) kt_jvm_library( name = "ap_kotlin", srcs = ["kotlin/TestKtValue.kt"], plugins = [":autovalue"], - deps = ["//third_party/jvm/com/google/auto/value:auto_value_annotations"], + deps = ["@kotlin_rules_maven//:com_google_auto_value_auto_value_annotations"], ) kt_jvm_library( @@ -49,7 +49,7 @@ kt_jvm_library( "java/TestAPNoGenReferences.java", "kotlin/TestKtAPNoGenReference.kt", ], - deps = ["//third_party/jvm/com/google/auto/value:auto_value_annotations"], + deps = ["@kotlin_rules_maven//:com_google_auto_value_auto_value_annotations"], ) kt_jvm_library( @@ -59,14 +59,14 @@ kt_jvm_library( "kotlin/TestKtValue.kt", ], plugins = [":autovalue"], - deps = ["//third_party/jvm/com/google/auto/value:auto_value_annotations"], + deps = ["@kotlin_rules_maven//:com_google_auto_value_auto_value_annotations"], ) kt_jvm_library( name = "ap_kotlin_resources", srcs = ["kotlin/TestKtService.kt"], plugins = [":autoservice"], - deps = ["//third_party/jvm/com/google/auto/service:auto_service_annotations"], + deps = ["@kotlin_rules_maven//:com_google_auto_service_auto_service_annotations"], ) kt_jvm_library( @@ -76,7 +76,7 @@ kt_jvm_library( "kotlin/TestKtService.kt", ], plugins = [":autoservice"], - deps = ["//third_party/jvm/com/google/auto/service:auto_service_annotations"], + deps = ["@kotlin_rules_maven//:com_google_auto_service_auto_service_annotations"], ) kt_jvm_library( @@ -92,8 +92,8 @@ kt_jvm_library( ":autovalue", ], deps = [ - "//third_party/jvm/com/google/auto/service:auto_service_annotations", - "//third_party/jvm/com/google/auto/value:auto_value_annotations", + "@kotlin_rules_maven//:com_google_auto_service_auto_service_annotations", + "@kotlin_rules_maven//:com_google_auto_value_auto_value_annotations", ], ) @@ -110,8 +110,8 @@ kt_jvm_library( ":autovalue_no_processor_class", ], deps = [ - "//third_party/jvm/com/google/auto/service:auto_service_annotations", - "//third_party/jvm/com/google/auto/value:auto_value_annotations", + "@kotlin_rules_maven//:com_google_auto_service_auto_service_annotations", + "@kotlin_rules_maven//:com_google_auto_value_auto_value_annotations", ], ) @@ -134,8 +134,8 @@ kt_jvm_library( plugins = [":autovalue"], deps = [ "library_exporting_autovalue_and_junit", - "//third_party/jvm/com/google/auto/service:auto_service_annotations", - "//third_party/jvm/com/google/auto/value:auto_value_annotations", + "@kotlin_rules_maven//:com_google_auto_service_auto_service_annotations", + "@kotlin_rules_maven//:com_google_auto_value_auto_value_annotations", ], ) diff --git a/src/test/kotlin/io/bazel/kotlin/BUILD b/src/test/kotlin/io/bazel/kotlin/BUILD index 97707afef..b291c8f8c 100644 --- a/src/test/kotlin/io/bazel/kotlin/BUILD +++ b/src/test/kotlin/io/bazel/kotlin/BUILD @@ -22,14 +22,14 @@ kt_jvm_library( srcs = ["KotlinAssertionTestCase.kt"], visibility = ["//visibility:public"], exports = [ - "//third_party/jvm/com/google/truth", - "//third_party/jvm/junit", "@com_github_jetbrains_kotlin//:kotlin-test", - "@io_bazel_rules_kotlin_com_google_guava_guava//jar", + "@kotlin_rules_maven//:com_google_guava_guava", + "@kotlin_rules_maven//:com_google_truth_truth", + "@kotlin_rules_maven//:junit_junit", ], deps = [ "@com_github_jetbrains_kotlin//:kotlin-test", - "@io_bazel_rules_kotlin_com_google_guava_guava//jar", + "@kotlin_rules_maven//:com_google_guava_guava", ], ) diff --git a/src/test/kotlin/io/bazel/kotlin/builder/BUILD b/src/test/kotlin/io/bazel/kotlin/builder/BUILD index fdbda59c1..37db8ff13 100644 --- a/src/test/kotlin/io/bazel/kotlin/builder/BUILD +++ b/src/test/kotlin/io/bazel/kotlin/builder/BUILD @@ -18,11 +18,12 @@ load("//src/test/kotlin/io/bazel/kotlin:defs.bzl", "kt_rules_test") _COMMON_DEPS = [ "//src/main/kotlin/io/bazel/kotlin/builder", - "//src/main/protobuf:kotlin_model", - "//third_party/jvm/com/google/truth", - "//third_party/jvm/junit", - "//third_party/jvm/com/google/guava", - "//third_party/jvm/com/google/code/findbugs:jsr305", + "//src/main/protobuf:kotlin_model_java_proto", + "//src/main/protobuf:deps_java_proto", + "@kotlin_rules_maven//:com_google_truth_truth", + "@kotlin_rules_maven//:junit_junit", + "@kotlin_rules_maven//:com_google_guava_guava", + "@kotlin_rules_maven//:com_google_code_findbugs_jsr305", ] java_library( @@ -40,8 +41,7 @@ java_library( "@com_github_jetbrains_kotlin//:home", ], exports = _COMMON_DEPS + [ - "@io_bazel_rules_kotlin_com_google_protobuf_protobuf_java//jar", - "//src/main/protobuf:deps", + "@kotlin_rules_maven//:com_google_protobuf_protobuf_java", ], runtime_deps = [ "@com_github_jetbrains_kotlin//:kotlin-reflect", @@ -67,12 +67,22 @@ kt_rules_test( srcs = ["tasks/jvm/KotlinBuilderJvmBasicTest.java"], ) +# TODO(bazelbuild/rules_kotlin/issues/275): Remove full jar reference when the kt_rules_test handles jvm_import data better. +_MAVEN_CENTRAL_PREFIX = "@kotlin_rules_maven//:v1/https/maven-central.storage.googleapis.com/repos/central/data" +_AUTO_VALUE_PREFIX = "%s/com/google/auto/value" % _MAVEN_CENTRAL_PREFIX +_AUTO_VALUE_JAR = _AUTO_VALUE_PREFIX+ "/auto-value/1.6.5/auto-value-1.6.5.jar" +_AUTO_VALUE_ANNOTATIONS_JAR = _AUTO_VALUE_PREFIX+ "/auto-value-annotations/1.6.5/auto-value-annotations-1.6.5.jar" + kt_rules_test( name = "KotlinBuilderJvmKaptTest", srcs = ["tasks/jvm/KotlinBuilderJvmKaptTest.java"], data = [ - "//third_party/jvm/com/google/auto/value:auto_value", - "//third_party/jvm/com/google/auto/value:auto_value_annotations", + _AUTO_VALUE_JAR, + _AUTO_VALUE_ANNOTATIONS_JAR, + ], + jvm_flags = [ + "-Dauto_value=$(location %s)" % _AUTO_VALUE_JAR, + "-Dauto_value_annotations=$(location %s)" % _AUTO_VALUE_ANNOTATIONS_JAR, ], ) diff --git a/src/test/kotlin/io/bazel/kotlin/builder/tasks/jvm/KotlinBuilderJvmKaptTest.java b/src/test/kotlin/io/bazel/kotlin/builder/tasks/jvm/KotlinBuilderJvmKaptTest.java index 4091aba0c..e68f5b3d9 100644 --- a/src/test/kotlin/io/bazel/kotlin/builder/tasks/jvm/KotlinBuilderJvmKaptTest.java +++ b/src/test/kotlin/io/bazel/kotlin/builder/tasks/jvm/KotlinBuilderJvmKaptTest.java @@ -23,29 +23,31 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; +import java.io.File; import java.util.function.Consumer; import java.util.stream.Collectors; -import static io.bazel.kotlin.builder.KotlinJvmTestBuilder.*; +import static io.bazel.kotlin.builder.KotlinJvmTestBuilder.KOTLIN_ANNOTATIONS; +import static io.bazel.kotlin.builder.KotlinJvmTestBuilder.KOTLIN_STDLIB; @RunWith(JUnit4.class) public class KotlinBuilderJvmKaptTest { private static final Dep AUTO_VALUE_ANNOTATIONS = Dep.importJar( "autovalue_annotations", - "external/io_bazel_rules_kotlin_com_google_auto_value_auto_value_annotations" - + "/jar/io_bazel_rules_kotlin_com_google_auto_value_auto_value_annotations.jar"); + System.getProperty("auto_value_annotations") + .replaceFirst("external" + File.separator, "")); private static final Dep AUTO_VALUE = Dep.importJar( "autovalue", - "external/io_bazel_rules_kotlin_com_google_auto_value_auto_value" - + "/jar/io_bazel_rules_kotlin_com_google_auto_value_auto_value.jar"); - private static final AnnotationProcessor AUTO_VALUE_ANNOTATION_PROCESSOR = - AnnotationProcessor.builder() - .processClass("com.google.auto.value.processor.AutoValueProcessor") - .processorPath( - Dep.classpathOf(AUTO_VALUE_ANNOTATIONS, AUTO_VALUE, KOTLIN_ANNOTATIONS).collect(Collectors.toSet())) - .build(); + System.getProperty("auto_value") + .replaceFirst("external" + File.separator, "")); + private static final AnnotationProcessor AUTO_VALUE_ANNOTATION_PROCESSOR = + AnnotationProcessor.builder() + .processClass("com.google.auto.value.processor.AutoValueProcessor") + .processorPath( + Dep.classpathOf(AUTO_VALUE_ANNOTATIONS, AUTO_VALUE, KOTLIN_ANNOTATIONS).collect(Collectors.toSet())) + .build(); private static final KotlinJvmTestBuilder ctx = new KotlinJvmTestBuilder(); diff --git a/third_party/BUILD b/third_party/BUILD index ce1fb71a2..8c463f0e3 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -19,54 +19,19 @@ load("//kotlin/internal/utils:packager.bzl", "release_archive") exports_files(["empty.jar"]) -java_binary( - name = "bazel_deps", - main_class = "com.github.johnynek.bazel_deps.ParseProject", - runtime_deps = ["@bazel_deps//jar"], -) - -sh_test( - name = "force_import_load_test", - srcs = ["//:scripts/noop.sh"], - data = [":force_import_load_deploy.jar"], -) - -# This binary isn't used except to test the two usages of kt_jvm_import below. -java_binary( - name = "force_import_load", - create_executable = False, - runtime_deps = [ - ":kotlinx_coroutines", - ":kotlinx_coroutines_common", - ], -) - -kt_jvm_import( - name = "kotlinx_coroutines", - jars = [ - "@io_bazel_rules_kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core//jar", - ], -) - -kt_jvm_import( - name = "kotlinx_coroutines_common", - jar = "@io_bazel_rules_kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core_common//jar:io_bazel_rules_kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core_common.jar", - srcjar = "@io_bazel_rules_kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core_common//jar:io_bazel_rules_kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core_common-sources.jar", -) - java_plugin( name = "autovalue_plugin", generates_api = 1, processor_class = "com.google.auto.value.processor.AutoValueProcessor", visibility = ["//visibility:private"], - deps = ["//third_party/jvm/com/google/auto/value:auto_value"], + deps = ["@kotlin_rules_maven//:com_google_auto_value_auto_value"], ) java_library( name = "autovalue", exported_plugins = [":autovalue_plugin"], neverlink = 1, - exports = ["//third_party/jvm/com/google/auto/value:auto_value_annotations"], + exports = ["@kotlin_rules_maven//:com_google_auto_value_auto_value_annotations"], ) java_plugin( @@ -75,7 +40,7 @@ java_plugin( processor_class = "dagger.internal.codegen.ComponentProcessor", visibility = ["//visibility:private"], deps = [ - "//third_party/jvm/com/google/dagger:dagger_compiler", + "@kotlin_rules_maven//:com_google_dagger_dagger_compiler", ], ) @@ -83,8 +48,8 @@ java_library( name = "dagger", exported_plugins = [":dagger_component_plugin"], exports = [ - "//third_party/jvm/com/google/dagger", - "//third_party/jvm/javax/inject:javax_inject", + "@kotlin_rules_maven//:com_google_dagger_dagger", + "@kotlin_rules_maven//:javax_inject_javax_inject", ], ) @@ -92,9 +57,10 @@ java_binary( name = "jarjar_runner", main_class = "org.pantsbuild.jarjar.Main", visibility = ["//visibility:public"], - runtime_deps = ["//third_party/jvm/org/pantsbuild:jarjar"], + runtime_deps = ["@kotlin_rules_maven//:org_pantsbuild_jarjar"], ) +# TODO(bazelbuild/rules_kotlin/issues/273): Remove android_sdk import. java_import( name = "android_sdk", jars = ["@bazel_tools//tools/android:android_jar"], diff --git a/third_party/dependencies.yaml b/third_party/dependencies.yaml deleted file mode 100644 index 82f7a7e67..000000000 --- a/third_party/dependencies.yaml +++ /dev/null @@ -1,73 +0,0 @@ -options: - thirdPartyDirectory: "third_party/jvm" - buildHeader: [ 'licenses(["notice"])' ] - resolvers: - - id: "mavencentral" - type: "default" - url: https://repo.maven.apache.org/maven2/ - resolverType: coursier - transitivity: runtime_deps - versionConflictPolicy: highest - namePrefix: "io_bazel_rules_kotlin_" - -dependencies: - com.google.code.findbugs: - jsr305: - lang: "java" - version: "3.0.2" - junit: - junit: - lang: "java" - version: "4.13-beta-3" - com.google.protobuf: - protobuf: - modules: ["java", "java-util"] - lang: "java" - version: "3.6.0" - com.google.guava: - guava: - lang: "java" - version: "27.1-jre" - com.google.truth: - truth: - lang: "java" - version: "0.45" - com.google.auto.service: - auto-service: - modules: ["", "annotations"] - lang: "java" - version: "1.0-rc5" - com.google.auto.value: - auto-value: - modules: ["", "annotations"] - lang: "java" - version: "1.6.5" - com.google.dagger: - dagger: - modules: ["", "compiler", "producers"] - lang: "java" - version: "2.23.1" - javax.inject: - javax.inject: - lang: "java" - version: "1" - org.jetbrains.kotlinx: - kotlinx-coroutines: - modules: ["core"] - lang: "java" - version : "1.1.1" - org.pantsbuild: - jarjar: - lang: "java" - version: "1.7.2" -replacements: - org.jetbrains.kotlin: - kotlin-stdlib: - lang: java - target: "@com_github_jetbrains_kotlin//:kotlin-stdlib" - kotlin-reflect: - lang: java - target: "@com_github_jetbrains_kotlin//:kotlin-reflect" - kotlin-script-runtime: - lang: java - target: "@com_github_jetbrains_kotlin//:kotlin-script-runtime" diff --git a/third_party/jvm/BUILD b/third_party/jvm/BUILD deleted file mode 100644 index e69de29bb..000000000 diff --git a/third_party/jvm/com/google/auto/BUILD b/third_party/jvm/com/google/auto/BUILD deleted file mode 100644 index d52db146c..000000000 --- a/third_party/jvm/com/google/auto/BUILD +++ /dev/null @@ -1,16 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "auto_common", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/auto/auto_common", - ], - runtime_deps = [ - "//third_party/jvm/com/google/guava", - ], -) diff --git a/third_party/jvm/com/google/auto/service/BUILD b/third_party/jvm/com/google/auto/service/BUILD deleted file mode 100644 index 8a7915147..000000000 --- a/third_party/jvm/com/google/auto/service/BUILD +++ /dev/null @@ -1,28 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "auto_service", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/auto/service/auto_service", - ], - runtime_deps = [ - ":auto_service_annotations", - "//third_party/jvm/com/google/auto:auto_common", - "//third_party/jvm/com/google/guava", - ], -) - -java_library( - name = "auto_service_annotations", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/auto/service/auto_service_annotations", - ], -) diff --git a/third_party/jvm/com/google/auto/value/BUILD b/third_party/jvm/com/google/auto/value/BUILD deleted file mode 100644 index 73e6ed243..000000000 --- a/third_party/jvm/com/google/auto/value/BUILD +++ /dev/null @@ -1,23 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "auto_value", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/auto/value/auto_value", - ], -) - -java_library( - name = "auto_value_annotations", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/auto/value/auto_value_annotations", - ], -) diff --git a/third_party/jvm/com/google/code/findbugs/BUILD b/third_party/jvm/com/google/code/findbugs/BUILD deleted file mode 100644 index bd909a620..000000000 --- a/third_party/jvm/com/google/code/findbugs/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "jsr305", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/code/findbugs/jsr305", - ], -) diff --git a/third_party/jvm/com/google/code/gson/BUILD b/third_party/jvm/com/google/code/gson/BUILD deleted file mode 100644 index 7132c4f4d..000000000 --- a/third_party/jvm/com/google/code/gson/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "gson", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/code/gson/gson", - ], -) diff --git a/third_party/jvm/com/google/dagger/BUILD b/third_party/jvm/com/google/dagger/BUILD deleted file mode 100644 index 56446df89..000000000 --- a/third_party/jvm/com/google/dagger/BUILD +++ /dev/null @@ -1,75 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "dagger", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/dagger/dagger", - ], - runtime_deps = [ - "//third_party/jvm/javax/inject:javax_inject", - ], -) - -java_library( - name = "dagger_compiler", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/dagger/dagger_compiler", - ], - runtime_deps = [ - ":dagger", - ":dagger_producers", - ":dagger_spi", - "//third_party/jvm/com/google/googlejavaformat:google_java_format", - "//third_party/jvm/com/google/guava", - "//third_party/jvm/com/google/guava:failureaccess", - "//third_party/jvm/com/google/protobuf:protobuf_java", - "//third_party/jvm/com/squareup:javapoet", - "//third_party/jvm/javax/annotation:jsr250_api", - "//third_party/jvm/javax/inject:javax_inject", - "//third_party/jvm/net/ltgt/gradle/incap", - "//third_party/jvm/org/checkerframework:checker_compat_qual", - ], -) - -java_library( - name = "dagger_producers", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/dagger/dagger_producers", - ], - runtime_deps = [ - ":dagger", - "//third_party/jvm/com/google/guava", - "//third_party/jvm/com/google/guava:failureaccess", - "//third_party/jvm/javax/inject:javax_inject", - "//third_party/jvm/org/checkerframework:checker_compat_qual", - ], -) - -java_library( - name = "dagger_spi", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/dagger/dagger_spi", - ], - runtime_deps = [ - ":dagger", - ":dagger_producers", - "//third_party/jvm/com/google/guava", - "//third_party/jvm/com/google/guava:failureaccess", - "//third_party/jvm/com/squareup:javapoet", - "//third_party/jvm/javax/inject:javax_inject", - ], -) diff --git a/third_party/jvm/com/google/errorprone/BUILD b/third_party/jvm/com/google/errorprone/BUILD deleted file mode 100644 index 05ce5d004..000000000 --- a/third_party/jvm/com/google/errorprone/BUILD +++ /dev/null @@ -1,23 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "error_prone_annotations", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/errorprone/error_prone_annotations", - ], -) - -java_library( - name = "javac_shaded", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/errorprone/javac_shaded", - ], -) diff --git a/third_party/jvm/com/google/googlejavaformat/BUILD b/third_party/jvm/com/google/googlejavaformat/BUILD deleted file mode 100644 index 5368a3860..000000000 --- a/third_party/jvm/com/google/googlejavaformat/BUILD +++ /dev/null @@ -1,17 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "google_java_format", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/googlejavaformat/google_java_format", - ], - runtime_deps = [ - "//third_party/jvm/com/google/errorprone:javac_shaded", - "//third_party/jvm/com/google/guava", - ], -) diff --git a/third_party/jvm/com/google/guava/BUILD b/third_party/jvm/com/google/guava/BUILD deleted file mode 100644 index 8339049ce..000000000 --- a/third_party/jvm/com/google/guava/BUILD +++ /dev/null @@ -1,42 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "failureaccess", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/guava/failureaccess", - ], -) - -java_library( - name = "guava", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/guava/guava", - ], - runtime_deps = [ - ":failureaccess", - ":listenablefuture", - "//third_party/jvm/com/google/code/findbugs:jsr305", - "//third_party/jvm/com/google/errorprone:error_prone_annotations", - "//third_party/jvm/com/google/j2objc:j2objc_annotations", - "//third_party/jvm/org/checkerframework:checker_qual", - "//third_party/jvm/org/codehaus/mojo:animal_sniffer_annotations", - ], -) - -java_library( - name = "listenablefuture", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/guava/listenablefuture", - ], -) diff --git a/third_party/jvm/com/google/j2objc/BUILD b/third_party/jvm/com/google/j2objc/BUILD deleted file mode 100644 index b22b0bb87..000000000 --- a/third_party/jvm/com/google/j2objc/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "j2objc_annotations", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/j2objc/j2objc_annotations", - ], -) diff --git a/third_party/jvm/com/google/protobuf/BUILD b/third_party/jvm/com/google/protobuf/BUILD deleted file mode 100644 index 65a2a5d1c..000000000 --- a/third_party/jvm/com/google/protobuf/BUILD +++ /dev/null @@ -1,28 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "protobuf_java", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/protobuf/protobuf_java", - ], -) - -java_library( - name = "protobuf_java_util", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/protobuf/protobuf_java_util", - ], - runtime_deps = [ - ":protobuf_java", - "//third_party/jvm/com/google/code/gson", - "//third_party/jvm/com/google/guava", - ], -) diff --git a/third_party/jvm/com/google/truth/BUILD b/third_party/jvm/com/google/truth/BUILD deleted file mode 100644 index 84e5fe6fc..000000000 --- a/third_party/jvm/com/google/truth/BUILD +++ /dev/null @@ -1,21 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "truth", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/google/truth/truth", - ], - runtime_deps = [ - "//third_party/jvm/com/google/auto/value:auto_value_annotations", - "//third_party/jvm/com/google/errorprone:error_prone_annotations", - "//third_party/jvm/com/google/guava", - "//third_party/jvm/com/googlecode/java_diff_utils:diffutils", - "//third_party/jvm/junit", - "//third_party/jvm/org/checkerframework:checker_compat_qual", - ], -) diff --git a/third_party/jvm/com/googlecode/java_diff_utils/BUILD b/third_party/jvm/com/googlecode/java_diff_utils/BUILD deleted file mode 100644 index e02c2ad3c..000000000 --- a/third_party/jvm/com/googlecode/java_diff_utils/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "diffutils", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/googlecode/java_diff_utils/diffutils", - ], -) diff --git a/third_party/jvm/com/squareup/BUILD b/third_party/jvm/com/squareup/BUILD deleted file mode 100644 index 0c949346a..000000000 --- a/third_party/jvm/com/squareup/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "javapoet", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_com/squareup/javapoet", - ], -) diff --git a/third_party/jvm/javax/annotation/BUILD b/third_party/jvm/javax/annotation/BUILD deleted file mode 100644 index 728f91322..000000000 --- a/third_party/jvm/javax/annotation/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "jsr250_api", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_javax/annotation/jsr250_api", - ], -) diff --git a/third_party/jvm/javax/enterprise/BUILD b/third_party/jvm/javax/enterprise/BUILD deleted file mode 100644 index 71ea88690..000000000 --- a/third_party/jvm/javax/enterprise/BUILD +++ /dev/null @@ -1,17 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "cdi_api", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_javax/enterprise/cdi_api", - ], - runtime_deps = [ - "//third_party/jvm/javax/annotation:jsr250_api", - "//third_party/jvm/javax/inject:javax_inject", - ], -) diff --git a/third_party/jvm/javax/inject/BUILD b/third_party/jvm/javax/inject/BUILD deleted file mode 100644 index 6ada6c9c4..000000000 --- a/third_party/jvm/javax/inject/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "javax_inject", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_javax/inject/javax_inject", - ], -) diff --git a/third_party/jvm/junit/BUILD b/third_party/jvm/junit/BUILD deleted file mode 100644 index 6fa39df42..000000000 --- a/third_party/jvm/junit/BUILD +++ /dev/null @@ -1,16 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "junit", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_junit/junit", - ], - runtime_deps = [ - "//third_party/jvm/org/hamcrest:hamcrest_core", - ], -) diff --git a/third_party/jvm/net/ltgt/gradle/incap/BUILD b/third_party/jvm/net/ltgt/gradle/incap/BUILD deleted file mode 100644 index 2030dc700..000000000 --- a/third_party/jvm/net/ltgt/gradle/incap/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "incap", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_net/ltgt/gradle/incap/incap", - ], -) diff --git a/third_party/jvm/org/apache/ant/BUILD b/third_party/jvm/org/apache/ant/BUILD deleted file mode 100644 index 5ed5ff2c1..000000000 --- a/third_party/jvm/org/apache/ant/BUILD +++ /dev/null @@ -1,26 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "ant", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/apache/ant/ant", - ], - runtime_deps = [ - ":ant_launcher", - ], -) - -java_library( - name = "ant_launcher", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/apache/ant/ant_launcher", - ], -) diff --git a/third_party/jvm/org/apache/commons/BUILD b/third_party/jvm/org/apache/commons/BUILD deleted file mode 100644 index 901886c3b..000000000 --- a/third_party/jvm/org/apache/commons/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "commons_lang3", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/apache/commons/commons_lang3", - ], -) diff --git a/third_party/jvm/org/apache/maven/BUILD b/third_party/jvm/org/apache/maven/BUILD deleted file mode 100644 index b05c3c1b3..000000000 --- a/third_party/jvm/org/apache/maven/BUILD +++ /dev/null @@ -1,46 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "maven_artifact", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/apache/maven/maven_artifact", - ], - runtime_deps = [ - "//third_party/jvm/org/apache/commons:commons_lang3", - "//third_party/jvm/org/codehaus/plexus:plexus_utils", - ], -) - -java_library( - name = "maven_model", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/apache/maven/maven_model", - ], - runtime_deps = [ - "//third_party/jvm/org/apache/commons:commons_lang3", - "//third_party/jvm/org/codehaus/plexus:plexus_utils", - ], -) - -java_library( - name = "maven_plugin_api", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/apache/maven/maven_plugin_api", - ], - runtime_deps = [ - ":maven_artifact", - ":maven_model", - "//third_party/jvm/org/eclipse/sisu:org_eclipse_sisu_plexus", - ], -) diff --git a/third_party/jvm/org/checkerframework/BUILD b/third_party/jvm/org/checkerframework/BUILD deleted file mode 100644 index fea35efe4..000000000 --- a/third_party/jvm/org/checkerframework/BUILD +++ /dev/null @@ -1,23 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "checker_compat_qual", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/checkerframework/checker_compat_qual", - ], -) - -java_library( - name = "checker_qual", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/checkerframework/checker_qual", - ], -) diff --git a/third_party/jvm/org/codehaus/mojo/BUILD b/third_party/jvm/org/codehaus/mojo/BUILD deleted file mode 100644 index 89f3b8696..000000000 --- a/third_party/jvm/org/codehaus/mojo/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "animal_sniffer_annotations", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/codehaus/mojo/animal_sniffer_annotations", - ], -) diff --git a/third_party/jvm/org/codehaus/plexus/BUILD b/third_party/jvm/org/codehaus/plexus/BUILD deleted file mode 100644 index a7e9d65d4..000000000 --- a/third_party/jvm/org/codehaus/plexus/BUILD +++ /dev/null @@ -1,33 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "plexus_classworlds", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/codehaus/plexus/plexus_classworlds", - ], -) - -java_library( - name = "plexus_component_annotations", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/codehaus/plexus/plexus_component_annotations", - ], -) - -java_library( - name = "plexus_utils", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/codehaus/plexus/plexus_utils", - ], -) diff --git a/third_party/jvm/org/eclipse/sisu/BUILD b/third_party/jvm/org/eclipse/sisu/BUILD deleted file mode 100644 index 9a6e27c88..000000000 --- a/third_party/jvm/org/eclipse/sisu/BUILD +++ /dev/null @@ -1,30 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "org_eclipse_sisu_inject", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/eclipse/sisu/org_eclipse_sisu_inject", - ], -) - -java_library( - name = "org_eclipse_sisu_plexus", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/eclipse/sisu/org_eclipse_sisu_plexus", - ], - runtime_deps = [ - ":org_eclipse_sisu_inject", - "//third_party/jvm/javax/enterprise:cdi_api", - "//third_party/jvm/org/codehaus/plexus:plexus_classworlds", - "//third_party/jvm/org/codehaus/plexus:plexus_component_annotations", - "//third_party/jvm/org/codehaus/plexus:plexus_utils", - ], -) diff --git a/third_party/jvm/org/hamcrest/BUILD b/third_party/jvm/org/hamcrest/BUILD deleted file mode 100644 index 5adbd74b3..000000000 --- a/third_party/jvm/org/hamcrest/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "hamcrest_core", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/hamcrest/hamcrest_core", - ], -) diff --git a/third_party/jvm/org/jetbrains/BUILD b/third_party/jvm/org/jetbrains/BUILD deleted file mode 100644 index 4048991f0..000000000 --- a/third_party/jvm/org/jetbrains/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "annotations", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/jetbrains/annotations", - ], -) diff --git a/third_party/jvm/org/jetbrains/kotlin/BUILD b/third_party/jvm/org/jetbrains/kotlin/BUILD deleted file mode 100644 index 7615cb378..000000000 --- a/third_party/jvm/org/jetbrains/kotlin/BUILD +++ /dev/null @@ -1,43 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "kotlin_reflect", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "@com_github_jetbrains_kotlin//:kotlin-reflect", - ], -) - -java_library( - name = "kotlin_script_runtime", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "@com_github_jetbrains_kotlin//:kotlin-script-runtime", - ], -) - -java_library( - name = "kotlin_stdlib", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "@com_github_jetbrains_kotlin//:kotlin-stdlib", - ], -) - -java_library( - name = "kotlin_stdlib_common", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/jetbrains/kotlin/kotlin_stdlib_common", - ], -) diff --git a/third_party/jvm/org/jetbrains/kotlinx/BUILD b/third_party/jvm/org/jetbrains/kotlinx/BUILD deleted file mode 100644 index 6559384e4..000000000 --- a/third_party/jvm/org/jetbrains/kotlinx/BUILD +++ /dev/null @@ -1,30 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "kotlinx_coroutines_core", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/jetbrains/kotlinx/kotlinx_coroutines_core", - ], - runtime_deps = [ - ":kotlinx_coroutines_core_common", - "//third_party/jvm/org/jetbrains/kotlin:kotlin_stdlib", - ], -) - -java_library( - name = "kotlinx_coroutines_core_common", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/jetbrains/kotlinx/kotlinx_coroutines_core_common", - ], - runtime_deps = [ - "//third_party/jvm/org/jetbrains/kotlin:kotlin_stdlib_common", - ], -) diff --git a/third_party/jvm/org/ow2/asm/BUILD b/third_party/jvm/org/ow2/asm/BUILD deleted file mode 100644 index cec329863..000000000 --- a/third_party/jvm/org/ow2/asm/BUILD +++ /dev/null @@ -1,54 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "asm", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/ow2/asm/asm", - ], -) - -java_library( - name = "asm_analysis", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/ow2/asm/asm_analysis", - ], - runtime_deps = [ - ":asm_tree", - ], -) - -java_library( - name = "asm_commons", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/ow2/asm/asm_commons", - ], - runtime_deps = [ - ":asm", - ":asm_analysis", - ":asm_tree", - ], -) - -java_library( - name = "asm_tree", - visibility = [ - "//third_party/jvm:__subpackages__", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/ow2/asm/asm_tree", - ], - runtime_deps = [ - ":asm", - ], -) diff --git a/third_party/jvm/org/pantsbuild/BUILD b/third_party/jvm/org/pantsbuild/BUILD deleted file mode 100644 index 44f0d904b..000000000 --- a/third_party/jvm/org/pantsbuild/BUILD +++ /dev/null @@ -1,19 +0,0 @@ -load("@rules_java//java:defs.bzl", "java_library") - -licenses(["notice"]) - -java_library( - name = "jarjar", - visibility = [ - "//visibility:public", - ], - exports = [ - "//external:jar/io_bazel_rules_kotlin_org/pantsbuild/jarjar", - ], - runtime_deps = [ - "//third_party/jvm/org/apache/ant", - "//third_party/jvm/org/apache/maven:maven_plugin_api", - "//third_party/jvm/org/ow2/asm", - "//third_party/jvm/org/ow2/asm:asm_commons", - ], -) diff --git a/third_party/jvm/workspace.bzl b/third_party/jvm/workspace.bzl deleted file mode 100644 index 8655cbb69..000000000 --- a/third_party/jvm/workspace.bzl +++ /dev/null @@ -1,150 +0,0 @@ -# Do not edit. bazel-deps autogenerates this file from third_party/dependencies.yaml. -def _jar_artifact_impl(ctx): - jar_name = "%s.jar" % ctx.name - ctx.download( - output = ctx.path("jar/%s" % jar_name), - url = ctx.attr.urls, - sha256 = ctx.attr.sha256, - executable = False, - ) - src_name = "%s-sources.jar" % ctx.name - srcjar_attr = "" - has_sources = len(ctx.attr.src_urls) != 0 - if has_sources: - ctx.download( - output = ctx.path("jar/%s" % src_name), - url = ctx.attr.src_urls, - sha256 = ctx.attr.src_sha256, - executable = False, - ) - srcjar_attr = '\n srcjar = ":%s",' % src_name - - build_file_contents = """ -load("@rules_java//java:defs.bzl", "java_import") -package(default_visibility = ['//visibility:public']) -java_import( - name = 'jar', - tags = ['maven_coordinates={artifact}'], - jars = ['{jar_name}'],{srcjar_attr} -) -filegroup( - name = 'file', - srcs = [ - '{jar_name}', - '{src_name}' - ], - visibility = ['//visibility:public'] -)\n""".format(artifact = ctx.attr.artifact, jar_name = jar_name, src_name = src_name, srcjar_attr = srcjar_attr) - ctx.file(ctx.path("jar/BUILD"), build_file_contents, False) - return None - -jar_artifact = repository_rule( - attrs = { - "artifact": attr.string(mandatory = True), - "sha256": attr.string(mandatory = True), - "urls": attr.string_list(mandatory = True), - "src_sha256": attr.string(mandatory = False, default = ""), - "src_urls": attr.string_list(mandatory = False, default = []), - }, - implementation = _jar_artifact_impl, -) - -def jar_artifact_callback(hash): - src_urls = [] - src_sha256 = "" - source = hash.get("source", None) - if source != None: - src_urls = [source["url"]] - src_sha256 = source["sha256"] - jar_artifact( - artifact = hash["artifact"], - name = hash["name"], - urls = [hash["url"]], - sha256 = hash["sha256"], - src_urls = src_urls, - src_sha256 = src_sha256, - ) - native.bind(name = hash["bind"], actual = hash["actual"]) - -def list_dependencies(): - return [ - {"artifact": "com.google.auto.service:auto-service-annotations:1.0-rc5", "lang": "java", "sha1": "6ea999af2b6262a7179a09c51a3d54e7b40a3833", "sha256": "61e29be1b2a154c3a089e50d8c3e2198243085bfdf8e010081c8831be01da28b", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/service/auto-service-annotations/1.0-rc5/auto-service-annotations-1.0-rc5.jar", "source": {"sha1": "a2e50e3ba1f9a88f89142e7ea9a0f5380574f4e4", "sha256": "d69c145d636e25743ae9b360f01f29609dd23b671259755064855006f1f20aed", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/service/auto-service-annotations/1.0-rc5/auto-service-annotations-1.0-rc5-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_auto_service_auto_service_annotations", "actual": "@io_bazel_rules_kotlin_com_google_auto_service_auto_service_annotations//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/auto/service/auto_service_annotations"}, - {"artifact": "com.google.auto.service:auto-service:1.0-rc5", "lang": "java", "sha1": "d25246bae325b4bcc63b55d6d782515fac32215a", "sha256": "d7e3ba5a373797949081dbea0f2634241a30cce9bc6e6f7ef8208547e83b6286", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/service/auto-service/1.0-rc5/auto-service-1.0-rc5.jar", "source": {"sha1": "76bf7fbfc5a924f13115005a134546c4e2d1b245", "sha256": "ac72bd9ee0ded6cfdcf60f16d9842d7ca6134fe199b5c4c8ac4ffac68ed66275", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/service/auto-service/1.0-rc5/auto-service-1.0-rc5-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_auto_service_auto_service", "actual": "@io_bazel_rules_kotlin_com_google_auto_service_auto_service//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/auto/service/auto_service"}, - {"artifact": "com.google.auto.value:auto-value-annotations:1.6.5", "lang": "java", "sha1": "c3dad10377f0e2242c9a4b88e9704eaf79103679", "sha256": "3677f725f5b1b6cd6a4cc8aa8cf8f5fd2b76d170205cbdc3e9bfd9b58f934b3b", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/value/auto-value-annotations/1.6.5/auto-value-annotations-1.6.5.jar", "source": {"sha1": "3499fd80025705c502699d1154c4b9631cb7a95e", "sha256": "f55b4c071128b6887ca1aaccc3946c84ca27cea29d2df71ed333744451fbc7dc", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/value/auto-value-annotations/1.6.5/auto-value-annotations-1.6.5-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_auto_value_auto_value_annotations", "actual": "@io_bazel_rules_kotlin_com_google_auto_value_auto_value_annotations//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/auto/value/auto_value_annotations"}, - {"artifact": "com.google.auto.value:auto-value:1.6.5", "lang": "java", "sha1": "816872c85048f36a67a276ef7a49cc2e4595711c", "sha256": "ed5f69ef035b5367f1f0264f843b988908e36e155845880b29d79b7c8855adf3", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.6.5/auto-value-1.6.5.jar", "source": {"sha1": "bfc251753f9bbdd8855825361d5f8c7fec8a1471", "sha256": "1fb0b04edb49060628a0a32970d85116222117feb8e334862e543c0ec39b609e", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.6.5/auto-value-1.6.5-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_auto_value_auto_value", "actual": "@io_bazel_rules_kotlin_com_google_auto_value_auto_value//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/auto/value/auto_value"}, - {"artifact": "com.google.auto:auto-common:0.10", "lang": "java", "sha1": "c8f153ebe04a17183480ab4016098055fb474364", "sha256": "b876b5fddaceeba7d359667f6c4fb8c6f8658da1ab902ffb79ec9a415deede5f", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/auto-common/0.10/auto-common-0.10.jar", "source": {"sha1": "913c8de9604380c6e135086132adb26c77fa6c53", "sha256": "e227d5aa864a9d59d8196540ee90995204f3458201138a638df9b0af609aef17", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/auto/auto-common/0.10/auto-common-0.10-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_auto_auto_common", "actual": "@io_bazel_rules_kotlin_com_google_auto_auto_common//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/auto/auto_common"}, - {"artifact": "com.google.code.findbugs:jsr305:3.0.2", "lang": "java", "sha1": "25ea2e8b0c338a877313bd4672d3fe056ea78f0d", "sha256": "766ad2a0783f2687962c8ad74ceecc38a28b9f72a2d085ee438b7813e928d0c7", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar", "source": {"sha1": "b19b5927c2c25b6c70f093767041e641ae0b1b35", "sha256": "1c9e85e272d0708c6a591dc74828c71603053b48cc75ae83cce56912a2aa063b", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_code_findbugs_jsr305", "actual": "@io_bazel_rules_kotlin_com_google_code_findbugs_jsr305//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/code/findbugs/jsr305"}, - {"artifact": "com.google.code.gson:gson:2.7", "lang": "java", "sha1": "751f548c85fa49f330cecbb1875893f971b33c4e", "sha256": "2d43eb5ea9e133d2ee2405cc14f5ee08951b8361302fdd93494a3a997b508d32", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.7/gson-2.7.jar", "source": {"sha1": "bbb63ca253b483da8ee53a50374593923e3de2e2", "sha256": "2d3220d5d936f0a26258aa3b358160741a4557e046a001251e5799c2db0f0d74", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.7/gson-2.7-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_code_gson_gson", "actual": "@io_bazel_rules_kotlin_com_google_code_gson_gson//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/code/gson/gson"}, - {"artifact": "com.google.dagger:dagger-compiler:2.23.1", "lang": "java", "sha1": "e5382ddad77a93df8d7fc2713a19074528547831", "sha256": "71d35b859bd7707ab5bfcdde8080a45de464156ffe10be8da2e1a2784b0457ff", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/dagger/dagger-compiler/2.23.1/dagger-compiler-2.23.1.jar", "source": {"sha1": "b916b832e806707d0097bb574fc88f14eded199c", "sha256": "40e877863521d033bcc917545f908c34900eec4620142174c0c7ced1488d808c", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/dagger/dagger-compiler/2.23.1/dagger-compiler-2.23.1-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_dagger_dagger_compiler", "actual": "@io_bazel_rules_kotlin_com_google_dagger_dagger_compiler//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/dagger/dagger_compiler"}, - {"artifact": "com.google.dagger:dagger-producers:2.23.1", "lang": "java", "sha1": "d9b09b989c5742290270f4a17409177831c028b4", "sha256": "7087ecaa89f090bc63cd5d7ab7f0e3fa1e8f9445c45378a6f57fc017a349b9f4", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/dagger/dagger-producers/2.23.1/dagger-producers-2.23.1.jar", "source": {"sha1": "8bbd77ba9a9666791a865857343b4fe60aa8f9c5", "sha256": "37e614ec27efe1b7c92ae44ddbe4dc890f57db59c96b5a3da902bb367e214308", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/dagger/dagger-producers/2.23.1/dagger-producers-2.23.1-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_dagger_dagger_producers", "actual": "@io_bazel_rules_kotlin_com_google_dagger_dagger_producers//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/dagger/dagger_producers"}, - {"artifact": "com.google.dagger:dagger-spi:2.23.1", "lang": "java", "sha1": "d76261eba9807321bac1eef8326cff77e476d082", "sha256": "f1df5d17bb771aeaeae1eb02c303429d22a8ab4209b054b3ba74aefd860a4f89", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/dagger/dagger-spi/2.23.1/dagger-spi-2.23.1.jar", "source": {"sha1": "00b2627c92f55db26f242791a085ad11324b21e9", "sha256": "724459c36b2ca86ce941eccd7dac441a59473c9db59e766bd0cfaa73aed8cb91", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/dagger/dagger-spi/2.23.1/dagger-spi-2.23.1-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_dagger_dagger_spi", "actual": "@io_bazel_rules_kotlin_com_google_dagger_dagger_spi//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/dagger/dagger_spi"}, - {"artifact": "com.google.dagger:dagger:2.23.1", "lang": "java", "sha1": "77041fb1aca9fa6fcc7716cf72330e82f14b4349", "sha256": "f4fe4c0e22e0b3b4fe3b14b7a1c7a381ac1b9c0579ae6d2ae05e28069524b227", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/dagger/dagger/2.23.1/dagger-2.23.1.jar", "source": {"sha1": "8f8f32aa78516111ced35683e3f590d050d202fe", "sha256": "c952182682e2639941315ed8adfd8c2f6e0ed2fc6bbf081c6a94972f314d31b2", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/dagger/dagger/2.23.1/dagger-2.23.1-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_dagger_dagger", "actual": "@io_bazel_rules_kotlin_com_google_dagger_dagger//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/dagger/dagger"}, - # duplicates in com.google.errorprone:error_prone_annotations promoted to 2.3.1 - # - com.google.guava:guava:27.1-jre wanted version 2.2.0 - # - com.google.truth:truth:0.45 wanted version 2.3.1 - {"artifact": "com.google.errorprone:error_prone_annotations:2.3.1", "lang": "java", "sha1": "a6a2b2df72fd13ec466216049b303f206bd66c5d", "sha256": "10a5949aa0f95c8de4fd47edfe20534d2acefd8c224f8afea1f607e112816120", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.3.1/error_prone_annotations-2.3.1.jar", "source": {"sha1": "bbb735b1d3f003adf3572682106a9932f5f35395", "sha256": "0fe3db0b12e624afd1dbeba85421fa58c362f9caf55f1869d7683b8744c53616", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.3.1/error_prone_annotations-2.3.1-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_errorprone_error_prone_annotations", "actual": "@io_bazel_rules_kotlin_com_google_errorprone_error_prone_annotations//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/errorprone/error_prone_annotations"}, - {"artifact": "com.google.errorprone:javac-shaded:9-dev-r4023-3", "lang": "java", "sha1": "72b688efd290280a0afde5f9892b0fde6f362d1d", "sha256": "65bfccf60986c47fbc17c9ebab0be626afc41741e0a6ec7109e0768817a36f30", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/errorprone/javac-shaded/9-dev-r4023-3/javac-shaded-9-dev-r4023-3.jar", "source": {"sha1": "63214c79029c5d9ff0b8205d2d50e02c4879b4d6", "sha256": "cf0fde1aad77ac6e0e2d36a9f9179193ae1707088ba00ffa91fcfb5269304a6a", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/errorprone/javac-shaded/9-dev-r4023-3/javac-shaded-9-dev-r4023-3-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_errorprone_javac_shaded", "actual": "@io_bazel_rules_kotlin_com_google_errorprone_javac_shaded//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/errorprone/javac_shaded"}, - {"artifact": "com.google.googlejavaformat:google-java-format:1.5", "lang": "java", "sha1": "fba7f130d29061d2d2ea384b4880c10cae92ef73", "sha256": "aa19ad7850fb85178aa22f2fddb163b84d6ce4d0035872f30d4408195ca1144e", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/googlejavaformat/google-java-format/1.5/google-java-format-1.5.jar", "source": {"sha1": "a923662d9d3e11c63844cf4ae308c5a6b0292782", "sha256": "c204b15b3834128d335f17213f7e621ddb2cc5bfff5b8dd035cd1f2affb7fa8f", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/googlejavaformat/google-java-format/1.5/google-java-format-1.5-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_googlejavaformat_google_java_format", "actual": "@io_bazel_rules_kotlin_com_google_googlejavaformat_google_java_format//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/googlejavaformat/google_java_format"}, - {"artifact": "com.google.guava:failureaccess:1.0.1", "lang": "java", "sha1": "1dcf1de382a0bf95a3d8b0849546c88bac1292c9", "sha256": "a171ee4c734dd2da837e4b16be9df4661afab72a41adaf31eb84dfdaf936ca26", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar", "source": {"sha1": "1d064e61aad6c51cc77f9b59dc2cccc78e792f5a", "sha256": "092346eebbb1657b51aa7485a246bf602bb464cc0b0e2e1c7e7201fadce1e98f", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_guava_failureaccess", "actual": "@io_bazel_rules_kotlin_com_google_guava_failureaccess//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/guava/failureaccess"}, - # duplicates in com.google.guava:guava fixed to 27.1-jre - # - com.google.auto.service:auto-service:1.0-rc5 wanted version 27.0.1-jre - # - com.google.auto:auto-common:0.10 wanted version 23.5-jre - # - com.google.dagger:dagger-compiler:2.23.1 wanted version 27.1-jre - # - com.google.dagger:dagger-producers:2.23.1 wanted version 27.1-jre - # - com.google.dagger:dagger-spi:2.23.1 wanted version 27.1-jre - # - com.google.googlejavaformat:google-java-format:1.5 wanted version 22.0 - # - com.google.protobuf:protobuf-java-util:3.6.0 wanted version 19.0 - # - com.google.truth:truth:0.45 wanted version 27.0.1-android - {"artifact": "com.google.guava:guava:27.1-jre", "lang": "java", "sha1": "e47b59c893079b87743cdcfb6f17ca95c08c592c", "sha256": "4a5aa70cc968a4d137e599ad37553e5cfeed2265e8c193476d7119036c536fe7", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/guava/guava/27.1-jre/guava-27.1-jre.jar", "source": {"sha1": "5dfa313690a903560bf27478345780a607bf1e9b", "sha256": "9de05c573971cedfcd53fb85fc7a58a5f453053026a9bf18594cffc79a1d6874", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/guava/guava/27.1-jre/guava-27.1-jre-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_guava_guava", "actual": "@io_bazel_rules_kotlin_com_google_guava_guava//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/guava/guava"}, - {"artifact": "com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava", "lang": "java", "sha1": "b421526c5f297295adef1c886e5246c39d4ac629", "sha256": "b372a037d4230aa57fbeffdef30fd6123f9c0c2db85d0aced00c91b974f33f99", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar", "name": "io_bazel_rules_kotlin_com_google_guava_listenablefuture", "actual": "@io_bazel_rules_kotlin_com_google_guava_listenablefuture//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/guava/listenablefuture"}, - {"artifact": "com.google.j2objc:j2objc-annotations:1.1", "lang": "java", "sha1": "ed28ded51a8b1c6b112568def5f4b455e6809019", "sha256": "2994a7eb78f2710bd3d3bfb639b2c94e219cedac0d4d084d516e78c16dddecf6", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar", "source": {"sha1": "1efdf5b737b02f9b72ebdec4f72c37ec411302ff", "sha256": "2cd9022a77151d0b574887635cdfcdf3b78155b602abc89d7f8e62aba55cfb4f", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_j2objc_j2objc_annotations", "actual": "@io_bazel_rules_kotlin_com_google_j2objc_j2objc_annotations//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/j2objc/j2objc_annotations"}, - {"artifact": "com.google.protobuf:protobuf-java-util:3.6.0", "lang": "java", "sha1": "3680d0042d4fe0b95ada844ff24da0698a7f0773", "sha256": "ad7f8d67674906ce88077fbb233b427b7068991a61af42ce9301990bdf8f3605", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.6.0/protobuf-java-util-3.6.0.jar", "source": {"sha1": "1ac9d14befa9c98d382529dafa562a2dd4650011", "sha256": "a2959842caed6f0b1dbecfaf0e73ef03117416f967c0532c32d092b6e2b98d60", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.6.0/protobuf-java-util-3.6.0-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_protobuf_protobuf_java_util", "actual": "@io_bazel_rules_kotlin_com_google_protobuf_protobuf_java_util//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/protobuf/protobuf_java_util"}, - # duplicates in com.google.protobuf:protobuf-java fixed to 3.6.0 - # - com.google.dagger:dagger-compiler:2.23.1 wanted version 3.7.0 - # - com.google.protobuf:protobuf-java-util:3.6.0 wanted version 3.6.0 - {"artifact": "com.google.protobuf:protobuf-java:3.6.0", "lang": "java", "sha1": "5333f7e422744d76840c08a106e28e519fbe3acd", "sha256": "8c8a65be83e75ccdcaa21417e303025f1708ea01e8c0a05d6c770e64b6c09ea1", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java/3.6.0/protobuf-java-3.6.0.jar", "source": {"sha1": "6013b3453e0c102a8bd330d37f8e6918ce431882", "sha256": "88411bb0333725b27bf53ed4d95785f6f4b541e22e1e27c60c2be8b3115fc5c4", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java/3.6.0/protobuf-java-3.6.0-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_protobuf_protobuf_java", "actual": "@io_bazel_rules_kotlin_com_google_protobuf_protobuf_java//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/protobuf/protobuf_java"}, - {"artifact": "com.google.truth:truth:0.45", "lang": "java", "sha1": "e16683346f6a6887b1f140a2984e60c73c66c40a", "sha256": "0f7dced2a16e55a77e44fc3ff9c5be98d4bf4bb30abc18d78ffd735df950a69f", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/truth/truth/0.45/truth-0.45.jar", "source": {"sha1": "59827b0d5d93ceedd22b025172a2c672b4565a2c", "sha256": "42c9b62ded52cd85a664217e116fd425f0e4c949b96c8ccde4c4cd0bb0ebe2de", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/google/truth/truth/0.45/truth-0.45-sources.jar"}, "name": "io_bazel_rules_kotlin_com_google_truth_truth", "actual": "@io_bazel_rules_kotlin_com_google_truth_truth//jar", "bind": "jar/io_bazel_rules_kotlin_com/google/truth/truth"}, - {"artifact": "com.googlecode.java-diff-utils:diffutils:1.3.0", "lang": "java", "sha1": "7e060dd5b19431e6d198e91ff670644372f60fbd", "sha256": "61ba4dc49adca95243beaa0569adc2a23aedb5292ae78aa01186fa782ebdc5c2", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/googlecode/java-diff-utils/diffutils/1.3.0/diffutils-1.3.0.jar", "source": {"sha1": "90b4aaa9530827fe6ad2b6684389c86999e861a3", "sha256": "7f4d40e97827f8a3285c3e47e8d28797ecfd45fb2ff94bd12cb6a83760a5f427", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/googlecode/java-diff-utils/diffutils/1.3.0/diffutils-1.3.0-sources.jar"}, "name": "io_bazel_rules_kotlin_com_googlecode_java_diff_utils_diffutils", "actual": "@io_bazel_rules_kotlin_com_googlecode_java_diff_utils_diffutils//jar", "bind": "jar/io_bazel_rules_kotlin_com/googlecode/java_diff_utils/diffutils"}, - {"artifact": "com.squareup:javapoet:1.11.1", "lang": "java", "sha1": "210e69f58dfa76c5529a303913b4a30c2bfeb76b", "sha256": "9cbf2107be499ec6e95afd36b58e3ca122a24166cdd375732e51267d64058e90", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/squareup/javapoet/1.11.1/javapoet-1.11.1.jar", "source": {"sha1": "8da7f5aaa62c6e22f53d360b2d0e21f6fa35ef32", "sha256": "63d3187d924582b1afe9eb171e725d27a7e15603513890de0f8804a7fc07e9ac", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/com/squareup/javapoet/1.11.1/javapoet-1.11.1-sources.jar"}, "name": "io_bazel_rules_kotlin_com_squareup_javapoet", "actual": "@io_bazel_rules_kotlin_com_squareup_javapoet//jar", "bind": "jar/io_bazel_rules_kotlin_com/squareup/javapoet"}, - {"artifact": "javax.annotation:jsr250-api:1.0", "lang": "java", "sha1": "5025422767732a1ab45d93abfea846513d742dcf", "sha256": "a1a922d0d9b6d183ed3800dfac01d1e1eb159f0e8c6f94736931c1def54a941f", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar", "source": {"sha1": "9b1fba77edd118e13c42bda43d3c993dadd52c25", "sha256": "025c47d76c60199381be07012a0c5f9e74661aac5bd67f5aec847741c5b7f838", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0-sources.jar"}, "name": "io_bazel_rules_kotlin_javax_annotation_jsr250_api", "actual": "@io_bazel_rules_kotlin_javax_annotation_jsr250_api//jar", "bind": "jar/io_bazel_rules_kotlin_javax/annotation/jsr250_api"}, - {"artifact": "javax.enterprise:cdi-api:1.0", "lang": "java", "sha1": "44c453f60909dfc223552ace63e05c694215156b", "sha256": "1f10b2204cc77c919301f20ff90461c3df1b6e6cb148be1c2d22107f4851d423", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar", "source": {"sha1": "3a3b9c3e5a1ec04c0c8b82e249cee7aeb4a96f9a", "sha256": "0e7c351dfe05759f84dc3eddaac1da4ef72578b494b53338829d34b12271374f", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/javax/enterprise/cdi-api/1.0/cdi-api-1.0-sources.jar"}, "name": "io_bazel_rules_kotlin_javax_enterprise_cdi_api", "actual": "@io_bazel_rules_kotlin_javax_enterprise_cdi_api//jar", "bind": "jar/io_bazel_rules_kotlin_javax/enterprise/cdi_api"}, - {"artifact": "javax.inject:javax.inject:1", "lang": "java", "sha1": "6975da39a7040257bd51d21a231b76c915872d38", "sha256": "91c77044a50c481636c32d916fd89c9118a72195390452c81065080f957de7ff", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1.jar", "source": {"sha1": "a00123f261762a7c5e0ec916a2c7c8298d29c400", "sha256": "c4b87ee2911c139c3daf498a781967f1eb2e75bc1a8529a2e7b328a15d0e433e", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1-sources.jar"}, "name": "io_bazel_rules_kotlin_javax_inject_javax_inject", "actual": "@io_bazel_rules_kotlin_javax_inject_javax_inject//jar", "bind": "jar/io_bazel_rules_kotlin_javax/inject/javax_inject"}, - {"artifact": "junit:junit:4.13-beta-3", "lang": "java", "sha1": "24e695de7450859f58dcfb2d818af908aee93e36", "sha256": "ea84a0558309da51dbd9d958917cd27b0fc42e2b5940942fd4c5df527e3356f4", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/junit/junit/4.13-beta-3/junit-4.13-beta-3.jar", "source": {"sha1": "8c935ccfbc74f560aed6fb24ce52c7d177327a52", "sha256": "e18a61e69e4899942c91b7e2d5c68f65e9aabc303036f878cb341dea31194ac4", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/junit/junit/4.13-beta-3/junit-4.13-beta-3-sources.jar"}, "name": "io_bazel_rules_kotlin_junit_junit", "actual": "@io_bazel_rules_kotlin_junit_junit//jar", "bind": "jar/io_bazel_rules_kotlin_junit/junit"}, - {"artifact": "net.ltgt.gradle.incap:incap:0.2", "lang": "java", "sha1": "0c73e3db9bee414d6ee27995d951fcdbee09acad", "sha256": "b625b9806b0f1e4bc7a2e3457119488de3cd57ea20feedd513db070a573a4ffd", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/net/ltgt/gradle/incap/incap/0.2/incap-0.2.jar", "source": {"sha1": "5cf72f18b924fcfd7fd452025c890e7e7151a840", "sha256": "15c3cd213a214c94ef7ed262e00ab10c75d1680b0b9203b47801e7068de1cf5c", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/net/ltgt/gradle/incap/incap/0.2/incap-0.2-sources.jar"}, "name": "io_bazel_rules_kotlin_net_ltgt_gradle_incap_incap", "actual": "@io_bazel_rules_kotlin_net_ltgt_gradle_incap_incap//jar", "bind": "jar/io_bazel_rules_kotlin_net/ltgt/gradle/incap/incap"}, - {"artifact": "org.apache.ant:ant-launcher:1.9.9", "lang": "java", "sha1": "c5841b18f5299f17fc53223c3a378e08278a5ef7", "sha256": "02cbe010ceec4acab059acfa48a16dc7b7c430200f2561b6b7c75bcab48f4044", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/ant/ant-launcher/1.9.9/ant-launcher-1.9.9.jar", "source": {"sha1": "5c470dae95c8e07d3e163519e2cbce806e0448e3", "sha256": "ba0f51943f94c3a107f1aff983f180e08e3bc2093643feacfa6d1af025190ae8", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/ant/ant-launcher/1.9.9/ant-launcher-1.9.9-sources.jar"}, "name": "io_bazel_rules_kotlin_org_apache_ant_ant_launcher", "actual": "@io_bazel_rules_kotlin_org_apache_ant_ant_launcher//jar", "bind": "jar/io_bazel_rules_kotlin_org/apache/ant/ant_launcher"}, - {"artifact": "org.apache.ant:ant:1.9.9", "lang": "java", "sha1": "9dc55233d8c0809e57b2ec7f78376da3f32872bd", "sha256": "d81254bcb2e170c9ea16cd418050f3340da1736380a02415c8ddda9a0a0b8a1b", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/ant/ant/1.9.9/ant-1.9.9.jar", "source": {"sha1": "10007efe7eabbe71f8c722313269d37856fe1515", "sha256": "369708c550831c8a1a4c1a333e51db30ad69bbcd674f8545b6bce6a4290a9f5e", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/ant/ant/1.9.9/ant-1.9.9-sources.jar"}, "name": "io_bazel_rules_kotlin_org_apache_ant_ant", "actual": "@io_bazel_rules_kotlin_org_apache_ant_ant//jar", "bind": "jar/io_bazel_rules_kotlin_org/apache/ant/ant"}, - {"artifact": "org.apache.commons:commons-lang3:3.4", "lang": "java", "sha1": "5fe28b9518e58819180a43a850fbc0dd24b7c050", "sha256": "734c8356420cc8e30c795d64fd1fcd5d44ea9d90342a2cc3262c5158fbc6d98b", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar", "source": {"sha1": "b49dafc9cfef24c356827f322e773e7c26725dd2", "sha256": "4709f16a9e0f8fd83ae155083d63044e23045aac8f6f0183a2db09f492491b12", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4-sources.jar"}, "name": "io_bazel_rules_kotlin_org_apache_commons_commons_lang3", "actual": "@io_bazel_rules_kotlin_org_apache_commons_commons_lang3//jar", "bind": "jar/io_bazel_rules_kotlin_org/apache/commons/commons_lang3"}, - {"artifact": "org.apache.maven:maven-artifact:3.3.9", "lang": "java", "sha1": "0f43afa184555fbc6e36b3334b17246c39b30f6e", "sha256": "1f702928f2233c6ecdf308fbd8f2932ea287c7062183d3c8364b0db7e9c4445d", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/3.3.9/maven-artifact-3.3.9.jar", "source": {"sha1": "0dccabdddd892d97f181788c63d30f10df9cc85d", "sha256": "8985ed687dc682ff0fef32fb449005cc02eb47f860e36bf8b38b3be3cfa81ef6", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/3.3.9/maven-artifact-3.3.9-sources.jar"}, "name": "io_bazel_rules_kotlin_org_apache_maven_maven_artifact", "actual": "@io_bazel_rules_kotlin_org_apache_maven_maven_artifact//jar", "bind": "jar/io_bazel_rules_kotlin_org/apache/maven/maven_artifact"}, - {"artifact": "org.apache.maven:maven-model:3.3.9", "lang": "java", "sha1": "6efde8cbcb4de4c47f7e9c2a3ab2806022b5c70f", "sha256": "15abde67fa7ea1e573e1f68c34921e995f0971351aaf1fb96790688ff510efcd", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/3.3.9/maven-model-3.3.9.jar", "source": {"sha1": "590902cc3f932ced5ce51282b74bf62571a82c14", "sha256": "9caac5f1fafe59db3b68f3c78dc6f3511720e59b190d3c1de939ce4fefc1bea6", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/3.3.9/maven-model-3.3.9-sources.jar"}, "name": "io_bazel_rules_kotlin_org_apache_maven_maven_model", "actual": "@io_bazel_rules_kotlin_org_apache_maven_maven_model//jar", "bind": "jar/io_bazel_rules_kotlin_org/apache/maven/maven_model"}, - {"artifact": "org.apache.maven:maven-plugin-api:3.3.9", "lang": "java", "sha1": "aa706ea7ca23776861b4eb2cea97cf345e791496", "sha256": "14cae18fd7125901b12fc914e30ea26ad9bd43dbd399dd6e8fcbc6c754ef2c9c", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/3.3.9/maven-plugin-api-3.3.9.jar", "source": {"sha1": "26efdb80ee74e458d589719df3f85656ccaeb326", "sha256": "5f26fcbf2634be46e9b55a7c95d92e916fc14c55aca96ad29384a0912476bb9e", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/3.3.9/maven-plugin-api-3.3.9-sources.jar"}, "name": "io_bazel_rules_kotlin_org_apache_maven_maven_plugin_api", "actual": "@io_bazel_rules_kotlin_org_apache_maven_maven_plugin_api//jar", "bind": "jar/io_bazel_rules_kotlin_org/apache/maven/maven_plugin_api"}, - # duplicates in org.checkerframework:checker-compat-qual promoted to 2.5.5 - # - com.google.dagger:dagger-compiler:2.23.1 wanted version 2.5.3 - # - com.google.dagger:dagger-producers:2.23.1 wanted version 2.5.3 - # - com.google.truth:truth:0.45 wanted version 2.5.5 - {"artifact": "org.checkerframework:checker-compat-qual:2.5.5", "lang": "java", "sha1": "435dc33e3019c9f019e15f01aa111de9d6b2b79c", "sha256": "11d134b245e9cacc474514d2d66b5b8618f8039a1465cdc55bbc0b34e0008b7a", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/checkerframework/checker-compat-qual/2.5.5/checker-compat-qual-2.5.5.jar", "source": {"sha1": "54d4253d4d8723096a95b7551bd5639e7e2affba", "sha256": "7c63a4a46b2ef903f941aeac63da87dd345be3243b472796aa945fa715bf3ca9", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/checkerframework/checker-compat-qual/2.5.5/checker-compat-qual-2.5.5-sources.jar"}, "name": "io_bazel_rules_kotlin_org_checkerframework_checker_compat_qual", "actual": "@io_bazel_rules_kotlin_org_checkerframework_checker_compat_qual//jar", "bind": "jar/io_bazel_rules_kotlin_org/checkerframework/checker_compat_qual"}, - {"artifact": "org.checkerframework:checker-qual:2.5.2", "lang": "java", "sha1": "cea74543d5904a30861a61b4643a5f2bb372efc4", "sha256": "64b02691c8b9d4e7700f8ee2e742dce7ea2c6e81e662b7522c9ee3bf568c040a", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/2.5.2/checker-qual-2.5.2.jar", "source": {"sha1": "ebb8ebccd42218434674f3e1d9022c13df1c19f8", "sha256": "821c5c63a6f156a3bb498c5bbb613580d9d8f4134131a5627d330fc4018669d2", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/2.5.2/checker-qual-2.5.2-sources.jar"}, "name": "io_bazel_rules_kotlin_org_checkerframework_checker_qual", "actual": "@io_bazel_rules_kotlin_org_checkerframework_checker_qual//jar", "bind": "jar/io_bazel_rules_kotlin_org/checkerframework/checker_qual"}, - {"artifact": "org.codehaus.mojo:animal-sniffer-annotations:1.17", "lang": "java", "sha1": "f97ce6decaea32b36101e37979f8b647f00681fb", "sha256": "92654f493ecfec52082e76354f0ebf87648dc3d5cec2e3c3cdb947c016747a53", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.17/animal-sniffer-annotations-1.17.jar", "source": {"sha1": "8fb5b5ad9c9723951b9fccaba5bb657fa6064868", "sha256": "2571474a676f775a8cdd15fb9b1da20c4c121ed7f42a5d93fca0e7b6e2015b40", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.17/animal-sniffer-annotations-1.17-sources.jar"}, "name": "io_bazel_rules_kotlin_org_codehaus_mojo_animal_sniffer_annotations", "actual": "@io_bazel_rules_kotlin_org_codehaus_mojo_animal_sniffer_annotations//jar", "bind": "jar/io_bazel_rules_kotlin_org/codehaus/mojo/animal_sniffer_annotations"}, - {"artifact": "org.codehaus.plexus:plexus-classworlds:2.5.2", "lang": "java", "sha1": "4abb111bfdace5b8167db4c0ef74644f3f88f142", "sha256": "b2931d41740490a8d931cbe0cfe9ac20deb66cca606e679f52522f7f534c9fd7", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-classworlds/2.5.2/plexus-classworlds-2.5.2.jar", "source": {"sha1": "8aea177d48dd9bdafe7c3b4116a604e8b3b1b52e", "sha256": "d087c4c0ff02b035111bb72c72603b2851d126c43da39cc3c73ff45139125bec", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-classworlds/2.5.2/plexus-classworlds-2.5.2-sources.jar"}, "name": "io_bazel_rules_kotlin_org_codehaus_plexus_plexus_classworlds", "actual": "@io_bazel_rules_kotlin_org_codehaus_plexus_plexus_classworlds//jar", "bind": "jar/io_bazel_rules_kotlin_org/codehaus/plexus/plexus_classworlds"}, - {"artifact": "org.codehaus.plexus:plexus-component-annotations:1.5.5", "lang": "java", "sha1": "c72f2660d0cbed24246ddb55d7fdc4f7374d2078", "sha256": "4df7a6a7be64b35bbccf60b5c115697f9ea3421d22674ae67135dde375fcca1f", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar", "source": {"sha1": "b10462efcf1ac1915797958d479c724d1bd5008d", "sha256": "527768d357304e0ad56b74ca77f27ba28b4a456680450ef45a30bfaf613469e6", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5-sources.jar"}, "name": "io_bazel_rules_kotlin_org_codehaus_plexus_plexus_component_annotations", "actual": "@io_bazel_rules_kotlin_org_codehaus_plexus_plexus_component_annotations//jar", "bind": "jar/io_bazel_rules_kotlin_org/codehaus/plexus/plexus_component_annotations"}, - # duplicates in org.codehaus.plexus:plexus-utils promoted to 3.0.22 - # - org.apache.maven:maven-artifact:3.3.9 wanted version 3.0.22 - # - org.apache.maven:maven-model:3.3.9 wanted version 3.0.22 - # - org.eclipse.sisu:org.eclipse.sisu.plexus:0.3.2 wanted version 3.0.17 - {"artifact": "org.codehaus.plexus:plexus-utils:3.0.22", "lang": "java", "sha1": "764f26e0ab13a87c48fe55f525dfb6a133b7a92f", "sha256": "0f31c44b275f87e56d46a582ce96d03b9e2ab344cf87c4e268b34d3ad046beab", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar", "source": {"sha1": "cf8b05bbaac563b52c02d396dfe4233a4dbae7bd", "sha256": "8fb619ac58aaa2a27f9cefce866a9689d41e15a120c2efe0f781b6bcad88caf3", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22-sources.jar"}, "name": "io_bazel_rules_kotlin_org_codehaus_plexus_plexus_utils", "actual": "@io_bazel_rules_kotlin_org_codehaus_plexus_plexus_utils//jar", "bind": "jar/io_bazel_rules_kotlin_org/codehaus/plexus/plexus_utils"}, - {"artifact": "org.eclipse.sisu:org.eclipse.sisu.inject:0.3.2", "lang": "java", "sha1": "59044b92ec27cc6fda7a2d24b2cd6cec23f31d5b", "sha256": "66e87705a818da44eb080a7bb1fc431de987754b4f92aa85f69991bfc677d40d", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar", "source": {"sha1": "40ee2c0df44216015c6af02f68632e97f6255b95", "sha256": "739d7228920a97892b9c6b6e4d16799930e8d2439543e71fa7a7c849a39cc8a1", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2-sources.jar"}, "name": "io_bazel_rules_kotlin_org_eclipse_sisu_org_eclipse_sisu_inject", "actual": "@io_bazel_rules_kotlin_org_eclipse_sisu_org_eclipse_sisu_inject//jar", "bind": "jar/io_bazel_rules_kotlin_org/eclipse/sisu/org_eclipse_sisu_inject"}, - {"artifact": "org.eclipse.sisu:org.eclipse.sisu.plexus:0.3.2", "lang": "java", "sha1": "cd84cb43788de23847eec2999070f64381bdb495", "sha256": "f5cfe0d88e8276971db4ecff0e4186d5f2ec5fdb1b6bb8c2f359fdc4b43eb8b2", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/eclipse/sisu/org.eclipse.sisu.plexus/0.3.2/org.eclipse.sisu.plexus-0.3.2.jar", "source": {"sha1": "19f14348517bfb751b0e49ba3f67e907ce997139", "sha256": "d8091fc791e3027dd72e51f0dabcd387f27dba8fffa79511edea29f33213a8a8", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/eclipse/sisu/org.eclipse.sisu.plexus/0.3.2/org.eclipse.sisu.plexus-0.3.2-sources.jar"}, "name": "io_bazel_rules_kotlin_org_eclipse_sisu_org_eclipse_sisu_plexus", "actual": "@io_bazel_rules_kotlin_org_eclipse_sisu_org_eclipse_sisu_plexus//jar", "bind": "jar/io_bazel_rules_kotlin_org/eclipse/sisu/org_eclipse_sisu_plexus"}, - {"artifact": "org.hamcrest:hamcrest-core:1.3", "lang": "java", "sha1": "42a25dc3219429f0e5d060061f71acb49bf010a0", "sha256": "66fdef91e9739348df7a096aa384a5685f4e875584cce89386a7a47251c4d8e9", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar", "source": {"sha1": "1dc37250fbc78e23a65a67fbbaf71d2e9cbc3c0b", "sha256": "e223d2d8fbafd66057a8848cc94222d63c3cedd652cc48eddc0ab5c39c0f84df", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar"}, "name": "io_bazel_rules_kotlin_org_hamcrest_hamcrest_core", "actual": "@io_bazel_rules_kotlin_org_hamcrest_hamcrest_core//jar", "bind": "jar/io_bazel_rules_kotlin_org/hamcrest/hamcrest_core"}, - {"artifact": "org.jetbrains.kotlin:kotlin-stdlib-common:1.3.20", "lang": "java", "sha1": "7d7934e26ce34da1a0a8d00e38038d7cf3375e89", "sha256": "06bdd8aeda347ef6ef3e4e9d88a01254ccdb70784b697495f6a421fd663ab649", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.20/kotlin-stdlib-common-1.3.20.jar", "source": {"sha1": "60070a2fbed969e9b73f214cb41072eabedf299a", "sha256": "186e6977750701be15fd16a92b9a349f1af90dc9ae80d566bb384f9e2326d78b", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.20/kotlin-stdlib-common-1.3.20-sources.jar"}, "name": "io_bazel_rules_kotlin_org_jetbrains_kotlin_kotlin_stdlib_common", "actual": "@io_bazel_rules_kotlin_org_jetbrains_kotlin_kotlin_stdlib_common//jar", "bind": "jar/io_bazel_rules_kotlin_org/jetbrains/kotlin/kotlin_stdlib_common"}, - {"artifact": "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.1.1", "lang": "java", "sha1": "7ed04382bdf0c89c5d87ac462aa4935ae8e85243", "sha256": "033732168fd3a68a7d788294321106ae13536eae8459382a85cc1f17f88572e7", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.1.1/kotlinx-coroutines-core-common-1.1.1.jar", "source": {"sha1": "113450f5f2a971252086c89dd26cde062455fbe8", "sha256": "597ac321b2d56e42251e9caf4d166264c4db3c89d3bee7d9f5ec6e1f2c5297bd", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.1.1/kotlinx-coroutines-core-common-1.1.1-sources.jar"}, "name": "io_bazel_rules_kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core_common", "actual": "@io_bazel_rules_kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core_common//jar", "bind": "jar/io_bazel_rules_kotlin_org/jetbrains/kotlinx/kotlinx_coroutines_core_common"}, - {"artifact": "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1", "lang": "java", "sha1": "3d2b7321cdef9ebf9cb7729ea4f75a6f6457df86", "sha256": "ac423f8a0aa4b4e74529696ff82c0171f81a8c8ab182a1965dff25e69c1f7844", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core/1.1.1/kotlinx-coroutines-core-1.1.1.jar", "source": {"sha1": "7fa353579a38ee5bc873511455e4cca65d930b52", "sha256": "064111d361fffb0091583821de0f5fc7b4549089db2a9e024f62cae5a79b0bc1", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core/1.1.1/kotlinx-coroutines-core-1.1.1-sources.jar"}, "name": "io_bazel_rules_kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core", "actual": "@io_bazel_rules_kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core//jar", "bind": "jar/io_bazel_rules_kotlin_org/jetbrains/kotlinx/kotlinx_coroutines_core"}, - {"artifact": "org.jetbrains:annotations:13.0", "lang": "java", "sha1": "919f0dfe192fb4e063e7dacadee7f8bb9a2672a9", "sha256": "ace2a10dc8e2d5fd34925ecac03e4988b2c0f851650c94b8cef49ba1bd111478", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/jetbrains/annotations/13.0/annotations-13.0.jar", "source": {"sha1": "5991ca87ef1fb5544943d9abc5a9a37583fabe03", "sha256": "42a5e144b8e81d50d6913d1007b695e62e614705268d8cf9f13dbdc478c2c68e", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/jetbrains/annotations/13.0/annotations-13.0-sources.jar"}, "name": "io_bazel_rules_kotlin_org_jetbrains_annotations", "actual": "@io_bazel_rules_kotlin_org_jetbrains_annotations//jar", "bind": "jar/io_bazel_rules_kotlin_org/jetbrains/annotations"}, - {"artifact": "org.ow2.asm:asm-analysis:7.0", "lang": "java", "sha1": "4b310d20d6f1c6b7197a75f1b5d69f169bc8ac1f", "sha256": "e981f8f650c4d900bb033650b18e122fa6b161eadd5f88978d08751f72ee8474", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.jar", "source": {"sha1": "70608c6f4ee3c2073ccd43f1e4a359783334f86f", "sha256": "57bdf5b407dc122b8f4118e2fbf686719c81f6b7c97598e17ce7a456ea151866", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0-sources.jar"}, "name": "io_bazel_rules_kotlin_org_ow2_asm_asm_analysis", "actual": "@io_bazel_rules_kotlin_org_ow2_asm_asm_analysis//jar", "bind": "jar/io_bazel_rules_kotlin_org/ow2/asm/asm_analysis"}, - {"artifact": "org.ow2.asm:asm-commons:7.0", "lang": "java", "sha1": "478006d07b7c561ae3a92ddc1829bca81ae0cdd1", "sha256": "fed348ef05958e3e846a3ac074a12af5f7936ef3d21ce44a62c4fa08a771927d", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.jar", "source": {"sha1": "06a7ca89b189929d4eb4349c6f075fc345b055e0", "sha256": "7076b9f1cd3fdae003447b9fd546290b9ab76e34f147b2bf0b981ddae86f7053", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/7.0/asm-commons-7.0-sources.jar"}, "name": "io_bazel_rules_kotlin_org_ow2_asm_asm_commons", "actual": "@io_bazel_rules_kotlin_org_ow2_asm_asm_commons//jar", "bind": "jar/io_bazel_rules_kotlin_org/ow2/asm/asm_commons"}, - {"artifact": "org.ow2.asm:asm-tree:7.0", "lang": "java", "sha1": "29bc62dcb85573af6e62e5b2d735ef65966c4180", "sha256": "cfd7a0874f9de36a999c127feeadfbfe6e04d4a71ee954d7af3d853f0be48a6c", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/7.0/asm-tree-7.0.jar", "source": {"sha1": "6064bf57bbce12aebc8ab96f32efe3f1c6cdd5fc", "sha256": "8888c88a9889b1b413d90e440b6b9c894e8d31632a473bd70e683645aba382dd", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/7.0/asm-tree-7.0-sources.jar"}, "name": "io_bazel_rules_kotlin_org_ow2_asm_asm_tree", "actual": "@io_bazel_rules_kotlin_org_ow2_asm_asm_tree//jar", "bind": "jar/io_bazel_rules_kotlin_org/ow2/asm/asm_tree"}, - {"artifact": "org.ow2.asm:asm:7.0", "lang": "java", "sha1": "d74d4ba0dee443f68fb2dcb7fcdb945a2cd89912", "sha256": "b88ef66468b3c978ad0c97fd6e90979e56155b4ac69089ba7a44e9aa7ffe9acf", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/ow2/asm/asm/7.0/asm-7.0.jar", "source": {"sha1": "1e0eab03ec196dea229ea637e523b9c016e66b42", "sha256": "51a538468a788fa543e80e6bccbe05d2a738fa0da553b710a1fd8ed574504982", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/ow2/asm/asm/7.0/asm-7.0-sources.jar"}, "name": "io_bazel_rules_kotlin_org_ow2_asm_asm", "actual": "@io_bazel_rules_kotlin_org_ow2_asm_asm//jar", "bind": "jar/io_bazel_rules_kotlin_org/ow2/asm/asm"}, - {"artifact": "org.pantsbuild:jarjar:1.7.2", "lang": "java", "sha1": "8e258f158b4572d40598d7f4793cfbfe84a7cc70", "sha256": "0706a455e17b67718abe212e3a77688bbe8260852fc74e3e836d9f2e76d91c27", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/pantsbuild/jarjar/1.7.2/jarjar-1.7.2.jar", "source": {"sha1": "7493bcc6977a9c1f117dc894a6408689b06911cd", "sha256": "69e0182465b18189294c6a3e3808595ad820b0b5bc2170324b2f6bb37fb1499a", "repository": "https://repo.maven.apache.org/maven2/", "url": "https://repo.maven.apache.org/maven2/org/pantsbuild/jarjar/1.7.2/jarjar-1.7.2-sources.jar"}, "name": "io_bazel_rules_kotlin_org_pantsbuild_jarjar", "actual": "@io_bazel_rules_kotlin_org_pantsbuild_jarjar//jar", "bind": "jar/io_bazel_rules_kotlin_org/pantsbuild/jarjar"}, - ] - -def maven_dependencies(callback = jar_artifact_callback): - for hash in list_dependencies(): - callback(hash)