Closed davidkubecka-ext43694 closed 6 months ago
Hello there! Happy to know you find this project helpful and thanks for opening an issue.
Incorporating bitdowntoc to the build or the CI should be easy using the command line tool (i.e. the jar, see this section in the README). You can either use a pre-commit hook to run bitdowntoc before every commit, or a GitHub Action (or another CI). In the latter case, you could choose between automatically amending the commit, or just checking that the TOC is up-to-date and failing the build if not.
For the version control, I am not sure I understand your need. Version control should be implemented in your CI process (using e.g. release-please) and of course git. What would you expect a TOC generator to do for version management?
Rereading your question, you could use the maven exec plug-in to run bitdowntoc https://www.mojohaus.org/exec-maven-plugin/
You could also use it to download the jar (using eg curl) and save it to target.
Downloading the jar is surely one option but it's not particulary nice. I was hoping for something more standard, i.e.
This way there would be a standard way how to manage the dependecy (instead of always downloading the jar) and how to run the tool itself (pre-commit hooks are fragile because users forget to install them).
So perhaps what I just ask for is to publish the jar on maven :-) Or if you have any other solution given the constraints above I would be happy to here that.
Publishing to maven would be the best, I agree. The process is however complicated and slow.
I propose to first publish it to the GitHub Maven registry, so you can play a bit with it? The only downside is that it will require you to provide a github PAT or username/password in your pom (see https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-to-github-packages).
As a first step I'm more than ok with just GitHub Maven registry 👍 Depending on how it goes I would then ask for a Maven central publish. In the meantime both of us can think of other options (if there are any).
I published the packages (be sure to use the -jvm
one for java, as this project is multiplatform). Can you try and confirm this is what you want? If so, I will go on and add the publishing to the CI pipeline.
@davidkubecka-ext43694 any news? Were you able to test it on your part?
@davidkubecka-ext43694 ping?
Closing due to inactivity.
I would like to run bitdowntoc as part of the build process so that the TOC generation is fully automatic. At the same time I would like to do version managent in a standard way, e.g. via maven?
Is this anyhow supported?