Skip to content
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 header option to SjppAntTask #2

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

alfonsodelavega
Copy link
Collaborator

@alfonsodelavega alfonsodelavega commented Aug 1, 2023

This pull request adds a header optional parameter to the sjpp ant task completing #1 .

As there is currently some functionality around the GENERATED line that is unknown for me at the moment (e.g. see this), any header is added after the generic "this file has been autogenerated..." line.

I have used it to add license headers to auto-generated PlantUML codebases. I'll submit a PR to the plantuml repository next.

@alfonsodelavega
Copy link
Collaborator Author

I've detected a bug due to the added header being removed, working on it.

Now any previous file header is deleted before the new one is included
@alfonsodelavega
Copy link
Collaborator Author

It is finished and ready for review now.

@arnaudroques arnaudroques merged commit 2aba044 into plantuml:main Aug 1, 2023
1 check passed
@arnaudroques
Copy link
Contributor

Sounds good!
I've sent you an invitation, so you could make a new release by yourself (if that's fine for you).
We should also probably remove sjpp.jar from plantuml repository and instead modify the CI/CD of PlantUML so that it fetches sjpp from an official release here.
Any idea on how to do that? :-)

@alfonsodelavega
Copy link
Collaborator Author

Hi,

I've sent you an invitation, so you could make a new release by yourself (if that's fine for you).

Github releases/actions are not my strong suit, but this seems like a good opportunity to learn. Any pointers?

We should also probably remove sjpp.jar from plantuml repository and instead modify the CI/CD of PlantUML so that it fetches sjpp from an official release here. Any idea on how to do that? :-)

That sounds like a great idea that I have no clue how to do :D. I'll have a look, I suppose Github Actions would allow doing some sort of clever wget / curl to fetch the latest release.

@arnaudroques
Copy link
Contributor

Github releases/actions are not my strong suit, but this seems like a good opportunity to learn. Any pointers?

Not our strong suit either :-) We have set up a minimal CI/CD there.
However, here some links that helped us:

Frankly, it's not that easy to use Github releases/action.
We can still make it manually this time (like we did for 0.0.3).
You can even do it manually if you want.

But as you said, this is a opportunity to learn (for us also!).
sjps is really a very simple project but what we learn here can be use for the larger PlantUML core project.

We should also probably remove sjpp.jar from plantuml repository and instead modify the CI/CD of PlantUML so that it fetches sjpp from an official release here. Any idea on how to do that? :-)

That sounds like a great idea that I have no clue how to do :D. I'll have a look, I suppose Github Actions would allow doing some sort of clever wget / curl to fetch the latest release.

Yes, I think a wget/curl to https://github.com/plantuml/sjpp/releases/download/0.0.3/sjpp.jar (or to the future 0.0.4) is possible.

However, no pressure here: we can still manually import the new sjpp.jar file in the repository, even if this is quite dirty :-)

Really, it's up to you: Open Source must be a pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants