Skip to content

Validate artifactId with PacakgeURL format#47

Merged
rjalander merged 2 commits intocdevents:mainfrom
Nordix:update_purl_format
May 4, 2023
Merged

Validate artifactId with PacakgeURL format#47
rjalander merged 2 commits intocdevents:mainfrom
Nordix:update_purl_format

Conversation

@rjalander
Copy link
Copy Markdown
Contributor

Adding packageurl-java dependency and validate artifactId with packageurl-java

@rjalander rjalander requested review from adamkenihan and afrittoli May 4, 2023 10:20
<modelVersion>4.0.0</modelVersion>
<groupId>dev.cdevents</groupId>
<artifactId>cdevents-sdk-java</artifactId>
<version>0.1.0-SNAPSHOT</version>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated this version to 0.1.2 as currently the SDK follows v0.1.2 spec

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!
As I understand it, this will then be updated to 0.1.2 (without the -SNAPSHOT) when we make a release, and for now 0.1.2-SNAPSHOT is fine.
@aalmiray is that correct?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, that is correct. The convention is to keep -SNAPSHOT while doing development. This tag must go away during release.

Comment on lines +134 to +139
<dependency>
<groupId>com.github.package-url</groupId>
<artifactId>packageurl-java</artifactId>
<version>${packageurl.version}</version>
</dependency>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is MIT, so it's fine.
@aalmiray @rjalander is there a way to automate license checks for dependencies in pom.xml?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's a Maven plugin we could use. Let me find out how to configure it.

Copy link
Copy Markdown
Member

@afrittoli afrittoli left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@rjalander rjalander merged commit 906ff00 into cdevents:main May 4, 2023
@cdevents-bot cdevents-bot added the released Issue has been released label Jul 24, 2023
@cdevents-bot
Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in v0.1.2 (Release Notes)

@cdevents-bot cdevents-bot added this to the v0.1.2 milestone Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Issue has been released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants