-
Notifications
You must be signed in to change notification settings - Fork 10
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
Use Bzlmod instead of http_jar in WORKSPACE file #149
Merged
Merged
Changes from all commits
Commits
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
"""Bazel build and test dependencies.""" | ||
|
||
# ========================================= | ||
# Bazel module dependencies | ||
# ========================================= | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.5.0") | ||
bazel_dep(name = "platforms", version = "0.0.8") | ||
bazel_dep(name = "rules_jvm_external", version = "5.3") | ||
bazel_dep(name = "rules_proto", version = "5.3.0-21.7") | ||
|
||
# ========================================= | ||
# Java dependencies | ||
# ========================================= | ||
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") | ||
|
||
maven.install( | ||
artifacts = [ | ||
"com.google.code.findbugs:jsr305:3.0.2", | ||
"com.google.code.gson:gson:2.10.1", | ||
"com.google.errorprone:error_prone_annotations:2.23.0", | ||
"com.google.googlejavaformat:google-java-format:1.18.1", | ||
"com.google.guava:failureaccess:1.0.2", | ||
"com.google.guava:guava:32.1.3-jre", | ||
"com.google.j2objc:j2objc-annotations:2.8", | ||
"com.google.truth:truth:1.1.5", | ||
"com.google.truth.extensions:truth-java8-extension:1.1.5", | ||
"commons-cli:commons-cli:1.5.0", | ||
"junit:junit:4.13.2", | ||
"net.bytebuddy:byte-buddy-agent:1.12.13", | ||
"net.bytebuddy:byte-buddy:1.12.13", | ||
"org.hamcrest:hamcrest-core:2.2", | ||
"org.mockito:mockito-core:4.6.1", | ||
"org.objenesis:objenesis:3.3", | ||
], | ||
repositories = [ | ||
"https://repo1.maven.org/maven2", | ||
], | ||
) | ||
|
||
use_repo(maven, "maven") |
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
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
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.
Can we mirror these deps to
engflow-tools-public
, and add its URL?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.
We didn't before. Do you think it's necessary?
I understand we do this for our internal repos, but I don't think we have the same requirement for always having 3rd party deps available here.
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.
I think it's advantageous. Not a blocker. But you never know, maybe
maven.org
will go down once just the wrong time.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.
After discussing outside of this thread, let's not mirror these and add links to our mirror.