forked from bazelbuild/rules_kotlin
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update maven dependencies, and invoke jarjar on the kotlinbuilder to …
…shade dagger, avoiding leakage of the bytecode from the builder into compilation jobs peformed by the builder. Fixes bazelbuild#192
- Loading branch information
Showing
41 changed files
with
634 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rule dagger.** io.bazel.kotlin.builder.dagger.@1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external") | ||
|
||
def _jar_jar_impl(ctx): | ||
ctx.action( | ||
inputs = [ctx.file.rules, ctx.file.input_jar], | ||
outputs = [ctx.outputs.jar], | ||
executable = ctx.executable.jarjar_runner, | ||
progress_message = "jarjar %s" % ctx.label, | ||
arguments = ["process", ctx.file.rules.path, ctx.file.input_jar.path, ctx.outputs.jar.path], | ||
) | ||
|
||
return [ | ||
JavaInfo( | ||
output_jar = ctx.outputs.jar, | ||
compile_jar = ctx.outputs.jar, | ||
), | ||
DefaultInfo(files = depset([ctx.outputs.jar])), | ||
] | ||
|
||
jar_jar = rule( | ||
implementation = _jar_jar_impl, | ||
attrs = { | ||
"input_jar": attr.label(allow_files = True, single_file = True), | ||
"rules": attr.label(allow_files = True, single_file = True), | ||
"jarjar_runner": attr.label( | ||
executable = True, | ||
cfg = "host", | ||
default = Label("@io_bazel_rules_kotlin//third_party:jarjar_runner"), | ||
), | ||
}, | ||
outputs = { | ||
"jar": "%{name}.jar", | ||
}, | ||
provides = [JavaInfo], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
licenses(["notice"]) | ||
|
||
java_library( | ||
name = "auto_common", | ||
visibility = [ | ||
"//third_party/jvm:__subpackages__", | ||
], | ||
exports = [ | ||
"//external:jar/io_bazel_rules_kotlin_com/google/auto/auto_common" | ||
"//external:jar/io_bazel_rules_kotlin_com/google/auto/auto_common", | ||
], | ||
runtime_deps = [ | ||
"//third_party/jvm/com/google/guava:guava" | ||
"//third_party/jvm/com/google/guava", | ||
], | ||
visibility = [ | ||
"//third_party/jvm:__subpackages__" | ||
] | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
licenses(["notice"]) | ||
|
||
java_library( | ||
name = "auto_service", | ||
visibility = [ | ||
"//visibility:public", | ||
], | ||
exports = [ | ||
"//external:jar/io_bazel_rules_kotlin_com/google/auto/service/auto_service" | ||
":auto_service_annotations", | ||
"//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:guava" | ||
"//third_party/jvm/com/google/guava", | ||
], | ||
visibility = [ | ||
"//visibility:public" | ||
] | ||
) | ||
|
||
|
||
java_library( | ||
name = "auto_service_annotations", | ||
visibility = [ | ||
"//visibility:public", | ||
], | ||
exports = [ | ||
"//external:jar/io_bazel_rules_kotlin_com/google/auto/service/auto_service_annotations", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
licenses(["notice"]) | ||
|
||
java_library( | ||
name = "auto_value", | ||
visibility = [ | ||
"//visibility:public", | ||
], | ||
exports = [ | ||
"//external:jar/io_bazel_rules_kotlin_com/google/auto/value/auto_value" | ||
":auto_value_annotations", | ||
"//external:jar/io_bazel_rules_kotlin_com/google/auto/value/auto_value", | ||
], | ||
visibility = [ | ||
"//visibility:public" | ||
] | ||
) | ||
|
||
|
||
java_library( | ||
name = "auto_value_annotations", | ||
visibility = [ | ||
"//visibility:public", | ||
], | ||
exports = [ | ||
"//external:jar/io_bazel_rules_kotlin_com/google/auto/value/auto_value_annotations", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
licenses(["notice"]) | ||
|
||
java_library( | ||
name = "jsr305", | ||
visibility = [ | ||
"//visibility:public", | ||
], | ||
exports = [ | ||
"//external:jar/io_bazel_rules_kotlin_com/google/code/findbugs/jsr305" | ||
"//external:jar/io_bazel_rules_kotlin_com/google/code/findbugs/jsr305", | ||
], | ||
visibility = [ | ||
"//visibility:public" | ||
] | ||
) | ||
|
||
|
Oops, something went wrong.