Skip to content

Commit

Permalink
Merge pull request #28 from eygraber/maven-package-version
Browse files Browse the repository at this point in the history
Add version info to maven packages
  • Loading branch information
loosebazooka authored Aug 23, 2023
2 parents 7e290ff + 56811ea commit 80b488d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ private Optional<SpdxPackage> createMavenModulePackage(
null);
spdxPkgBuilder.setExternalRefs(Collections.singletonList(externalRef));

spdxPkgBuilder.setVersionInfo(moduleId.getVersion());

String sha1 =
com.google.common.io.Files.asByteSource(dependencyFile).hash(Hashing.sha1()).toString();
var checksumSha1 = doc.createChecksum(ChecksumAlgorithm.SHA1, sha1);
Expand Down

0 comments on commit 80b488d

Please sign in to comment.