-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework examples to auto build repository.
Signed-off-by: restingbull@cabaretmechanique.com <restingbull@cabaretmechanique.com>
- Loading branch information
1 parent
54045ba
commit 9326d32
Showing
20 changed files
with
307 additions
and
163 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 |
---|---|---|
@@ -1,10 +1,2 @@ | ||
# Some examples have their own WORKSPACE. Ignore as part of this root WORKSPACE so | ||
# we don't break trying to build separate workspaces using wildcards like //... | ||
# examples/dagger doesn't have its own workspace, so don't do all of examples. | ||
examples/android | ||
examples/associates | ||
examples/jetpack_compose | ||
examples/node | ||
examples/trivial | ||
examples/anvil | ||
examples/multiplex | ||
# Exclude examples from //...:all | ||
examples/* |
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,42 @@ | ||
local_repository( | ||
name = "release_archive", | ||
path = "../release_archive", | ||
) | ||
|
||
load("@release_archive//:repository.bzl", "archive_repository") | ||
|
||
archive_repository( | ||
name = "io_bazel_rules_kotlin", | ||
) | ||
|
||
load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories", "versions") | ||
|
||
kotlin_repositories() | ||
|
||
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains") | ||
|
||
kt_register_toolchains() | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "rules_jvm_external", | ||
sha256 = versions.RULES_JVM_EXTERNAL_SHA, | ||
strip_prefix = "rules_jvm_external-%s" % versions.RULES_JVM_EXTERNAL_TAG, | ||
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % versions.RULES_JVM_EXTERNAL_TAG, | ||
) | ||
|
||
load("@rules_jvm_external//:defs.bzl", "maven_install") | ||
|
||
maven_install( | ||
artifacts = [ | ||
"com.google.dagger:dagger:2.35.1", | ||
"com.google.dagger:dagger-compiler:2.35.1", | ||
"com.google.dagger:dagger-producers:2.35.1", | ||
"javax.inject:javax.inject:1", | ||
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2", | ||
], | ||
repositories = [ | ||
"https://repo1.maven.org/maven2", | ||
], | ||
) |
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,21 @@ | ||
load("@rules_java//java:defs.bzl", "java_library", "java_plugin") | ||
|
||
java_plugin( | ||
name = "dagger_component_plugin", | ||
generates_api = True, | ||
processor_class = "dagger.internal.codegen.ComponentProcessor", | ||
visibility = ["//visibility:private"], | ||
deps = [ | ||
"@maven//:com_google_dagger_dagger_compiler", | ||
], | ||
) | ||
|
||
java_library( | ||
name = "dagger", | ||
exported_plugins = [":dagger_component_plugin"], | ||
visibility = ["//visibility:public"], | ||
exports = [ | ||
"@maven//:com_google_dagger_dagger", | ||
"@maven//:javax_inject_javax_inject", | ||
], | ||
) |
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
Oops, something went wrong.