-
Notifications
You must be signed in to change notification settings - Fork 267
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
NoSuchMethodError Exception #311
Comments
Looking at https://registry.bazel.build/modules/copybara, the Bazel Central Repository version is quite old. We don't officially maintain this release and this was likely uploaded by a third-party contributor. The current recommendation is to compile Copybara from source. Weekly releases are being worked on, tracked here: #310 |
Thanks for the clarification! I should be able to use It would be convenient if y'all pushed to the bcr on release 😀 |
Circling back around to share the solution I ended up with. I first attempted to use I added the jar to my module. http_jar(
name = "copybara",
urls = ["https://github.com/google/copybara/releases/download/v20250210/copybara_deploy.jar"],
) Then I added a java_binary(
name = "copybara",
main_class = "com.google.copybara.Main",
visibility = ["//:__subpackages__"],
runtime_deps = ["@copybara//jar"],
) |
Hey! I am trying to incorporate copybara into a bazel modules project. When I add copybara (from the bazel central registry) to my project and run
bazel run @copybara//java/com/google/copybara -- (pwd)/copy.bara.sky --force
I get this exception. Thecopy.bara.sky
file has the same contents of the example inREADME.md
.The text was updated successfully, but these errors were encountered: