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 support for SPDX Spec Version 3 #171

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Add support for SPDX Spec Version 3 #171

wants to merge 10 commits into from

Conversation

goneall
Copy link
Member

@goneall goneall commented Nov 13, 2024

Fixes #170

This is a rather large PR with some refactoring involved. For a description, see this comment.

This PR is currently in draft due to dependencies on some enhancements in the SPDX Java Library required for a successful compilation. These changes have been merged into the master branch of the java library but have not been released or published to Maven Central (reference spdx/Spdx-Java-Library#262)

To include this fix, you can pull down the latest code from the SPDX Java Library and build the dependency.

There is also a fix in the spdx-java-rdf-store which is required to pass the unit tests. This has been merged into the main - so you can pull down the latest from the project.

The code changes passes unit tests, but the integration tests are currently failing and a SonarCloud analysis has not been run - so there are likely some code cleanup issues to be found.

NOTE: changes are not complete - this commit includes code that breaks
the compilation.  This is just an intermediate checking to save progress
@goneall
Copy link
Member Author

goneall commented Nov 14, 2024

As an update - the changes to the SPDX Java Library have been merged into the master branch.

It seems that jsonschemafriend is no longer available in Maven Central
so we need to add the jitpack repository - needed for the Integration
Tests
Since we're not initializing or using the default model store, we need
to always pass in a model store to the license expression parser
methods.

Note that not using the default avoids a potential memory issue for long
running Maven scripts.
Cleaning up formatting - my IDE now has the Maven coding style added for
this project, so it should be a bit cleaner going forward.
@goneall goneall marked this pull request as ready for review December 15, 2024 23:58
@goneall
Copy link
Member Author

goneall commented Dec 16, 2024

@hboutemy - This should now be ready for review. The libraries this new version depends on have been published so it should be a lot easier to test. I also just finished cleaning up the code and making sure all the integration tests and unit tests pass.

Any review comments are very much appreciated.

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.

Add support for SPDX Spec version 3
1 participant