-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Bzlmod #1006
Merged
Merged
Add support for Bzlmod #1006
Changes from 22 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
12e6f03
Init
Bencodes 02ad06e
More bzlmod
Bencodes d6e5d19
Add rules_android
Bencodes 781359e
Download buildkite_config
Bencodes 455015a
Update skylib
Bencodes 70cf62c
Fix stardoc
Bencodes dfb5464
More testing
Bencodes ea7ad7d
Update docs
Bencodes 2d07f24
Formatting
Bencodes 271f22a
Testing...
Bencodes 627a52b
Presubmit changes
Bencodes 46fbfa8
CI
Bencodes a1669bc
CI
Bencodes 636e03d
More ci
Bencodes 4975273
More ci
Bencodes 721c106
More ci
Bencodes a55ca44
More ci
Bencodes 82d139a
More CI
Bencodes 5b12b2d
More CI
Bencodes cc2c072
Rename to is_bzlmod
Bencodes 679d6d2
Docs
Bencodes 8284083
Rename to rules_kotlin
Bencodes 6f9aeae
More renaming
Bencodes fb8d889
Remove
Bencodes ce9fe55
Revert "Remove"
Bencodes fea5064
More renaming
Bencodes 55b8bac
Revert
Bencodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,67 @@ | ||
module( | ||
name = "rules_kotlin", | ||
version = "1.8.1", | ||
compatibility_level = 1, | ||
repo_name = "rules_kotlin", | ||
) | ||
|
||
bazel_dep(name = "platforms", version = "0.0.6") | ||
bazel_dep(name = "bazel_skylib", version = "1.3.0") | ||
bazel_dep(name = "rules_java", version = "6.4.0") | ||
bazel_dep(name = "rules_python", version = "0.24.0") | ||
bazel_dep(name = "rules_cc", version = "0.0.8") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
rules_kotlin_extensions = use_extension("//src/main/starlark/core/repositories:bzlmod_setup.bzl", "rules_kotlin_extensions") | ||
use_repo( | ||
rules_kotlin_extensions, | ||
"build_bazel_rules_android", | ||
"buildkite_config", | ||
"com_github_google_ksp", | ||
"com_github_jetbrains_kotlin", | ||
"com_github_pinterest_ktlint", | ||
"kt_java_stub_template", | ||
) | ||
|
||
register_toolchains("//kotlin/internal:default_toolchain") | ||
|
||
# Development dependencies | ||
|
||
bazel_dep(name = "rules_jvm_external", version = "4.4.2") | ||
|
||
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") | ||
maven.install( | ||
name = "kotlin_rules_maven", | ||
artifacts = [ | ||
"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.1", | ||
"com.google.auto.service:auto-service-annotations:1.0.1", | ||
"com.google.auto.value:auto-value:1.10.1", | ||
"com.google.auto.value:auto-value-annotations:1.10.1", | ||
"com.google.dagger:dagger:2.43.2", | ||
"com.google.dagger:dagger-compiler:2.43.2", | ||
"com.google.dagger:dagger-producers:2.43.2", | ||
"javax.annotation:javax.annotation-api:1.3.2", | ||
"javax.inject:javax.inject:1", | ||
"org.pantsbuild:jarjar:1.7.2", | ||
"org.jetbrains.kotlinx:atomicfu-js:0.15.2", | ||
"org.jetbrains.kotlinx:kotlinx-serialization-runtime:1.0-M1-1.4.0-rc", | ||
], | ||
fetch_sources = True, | ||
repositories = [ | ||
"https://maven-central.storage.googleapis.com/repos/central/data/", | ||
"https://maven.google.com", | ||
"https://repo1.maven.org/maven2", | ||
], | ||
) | ||
use_repo(maven, "kotlin_rules_maven") | ||
|
||
bazel_dep(name = "rules_pkg", version = "0.7.0") | ||
bazel_dep(name = "stardoc", version = "0.5.6", repo_name = "io_bazel_stardoc") | ||
bazel_dep(name = "rules_proto", version = "5.3.0-21.7") | ||
|
||
register_toolchains("@rules_kotlin//kotlin/internal:default_toolchain") |
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
Empty file.
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,31 @@ | ||
module(name = "trival-example") | ||
|
||
bazel_dep(name = "rules_java", version = "6.4.0") | ||
bazel_dep(name = "io_bazel_rules_kotlin") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be |
||
local_path_override( | ||
module_name = "io_bazel_rules_kotlin", | ||
path = "../..", | ||
) | ||
|
||
bazel_dep(name = "rules_jvm_external", version = "4.4.2") | ||
|
||
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") | ||
maven.install( | ||
artifacts = [ | ||
"com.expedia:graphql-kotlin:1.0.0-RC5", | ||
"com.expedia:graphql-kotlin-schema-generator:1.0.0-RC5", | ||
"com.expedia:graphql-kotlin-federation:1.0.0-RC5", | ||
"com.graphql-java:graphql-java:13.0", | ||
"org.opentest4j:opentest4j:1.1.1", | ||
"org.apiguardian:apiguardian-api:1.0.0", | ||
"org.junit.platform:junit-platform-commons:1.4.2", | ||
"org.junit.jupiter:junit-jupiter-api:5.4.2", | ||
"org.junit.jupiter:junit-jupiter-params:5.4.2", | ||
"org.apache.logging.log4j:log4j-core:2.16.0", | ||
], | ||
repositories = [ | ||
"https://maven-central.storage.googleapis.com/repos/central/data/", | ||
"https://repo1.maven.org/maven2", | ||
], | ||
) | ||
use_repo(maven, "maven") |
Empty file.
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabling Bzlmod by default for
rules_kotlin