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 API to get version information #113

Merged
merged 2 commits into from
Feb 20, 2023
Merged

Conversation

HirumalPriyashan
Copy link
Contributor

Add SpdxVersion class to store and handle version information of tools, library and license list.

Add SpdxVersion class to store and handle version information of tools, library and license list.

Signed-off-by: Hirumal Priyashan <hirupriyashanrc@gmail.com>
Copy link
Member

@goneall goneall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @HirumalPriyashan - The changes look good.

There is one enhancement I was thinking of adding independent of the API request.

It would be nice to get the version from the POM file - that way we don't have to manually update it in the code. Now that the code is nicely structured for the version API, it might be a good opportunity to add this feature.

I found this stack overflow article describing an approach.

Let me know if you'd like to attempt the change as part of this PR. We can also merge this in and make a second issue/PR if you prefer.

Add programmatically retrieving version number from `pom.xml`

Signed-off-by: Hirumal Priyashan <hirupriyashanrc@gmail.com>
@HirumalPriyashan
Copy link
Contributor Author

I have added suggested feature to this PR.

Copy link
Member

@goneall goneall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @HirumalPriyashan - changes look good and works well.

@goneall goneall merged commit 244f914 into spdx:master Feb 20, 2023
@HirumalPriyashan HirumalPriyashan deleted the patch-112 branch February 20, 2023 02:29
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.

API to get version information
2 participants