-
Notifications
You must be signed in to change notification settings - Fork 50
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
Support bzlmod #153
Comments
@plaird is this on the roadmap anytime soon? |
@cdickson-sum I hope to get to this within a couple of months. Are you implementing bzlmod right now? |
I think we have been done with this for about a year when I added the MODULE.bazel file. rules_spring doesn't have any real dependencies. The ones in the workspace are for the examples. The exception is system python3, which is used in couple of optional features (dupe classes, javax detection). I am going to ignore that. I will do the following:
|
Hi Peter. Are there any updates? Almost all other rules have adopted bzlmod except |
We have a large monorepo with hundreds of springboot instances, so it is taking time for us to migrate. But we are getting closer to making the switch. What feature of rules_spring is failing for you? The dupe class and javax checkers require python, which is not listed in the module file. |
Does it make sense to add rules_spring (2.3.1 Jan 2024 Support for Spring Boot 3.2.0) to the Bazel Central Registry? Or is there something why it should not be added? |
Since bazel_dep(name = "rules_spring")
git_override(
module_name = "rules_spring",
remote = "https://github.com/salesforce/rules_spring",
commit = "1854fbca3c9d6e704dffaeb6f2f70b0476882acb", # v2.3.1
)
If someone wants to use the dupe class and javax checkers, he/she may need to add the |
Created a PR to add rules_spring 2.3.2 to Bzlmod: bazelbuild/bazel-central-registry#1854 |
@Vertexwahn are you going to try to add rules_spring to BCR again? Thanks! |
Here we go again: bazelbuild/bazel-central-registry#3352 |
Aside from the BCR entry, this repo is now fully migrated to Bzlmod as of 2.5.0. https://github.com/salesforce/rules_spring/releases/tag/2.5.0 |
Fantastic. Thank you for opening that PR! |
@jduan-highnote Sorry for the late reply - was unsure what to do about the python dependency issue As far as I understand it the following code forces everyone to use Python 3.11 - what if you need a newer or an older version?
Maybe a BCR entry can live without pining in to a certain version - would make it more generic |
I'm not well versed in BCR. You've got a good point about python though. Python 3.9 won't reach end of life until late 2025. |
I seem to recall that 3.11 came from boilerplate seen elsewhere. I can test without it. BTW the snippet above is already aged. The current version in main now looks like:
|
Remaining work:
|
I have submitted rules_spring 2.6.0 to BCR: |
rules_spring is now in BCR. Thanks everyone for your patience in this! |
Thank you for doing the hard work! |
Starting with Bazel 5, bzlmod has been provided such that rules can surface their external dependencies. We need to support that.
https://bazel.build/docs/bzlmod
The text was updated successfully, but these errors were encountered: