Skip to content

Commit

Permalink
test dependency type=zip for #431 (reverts #9)
Browse files Browse the repository at this point in the history
Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
  • Loading branch information
hboutemy committed Jan 16, 2024
1 parent 46837cd commit d0e6cb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/it/makeBom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@
<artifactId>cyclonedx-core-java</artifactId>
<version>7.2.1</version>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver.features</groupId>
<artifactId>wlp-nd-license</artifactId>
<version>23.0.0.12</version>
<type>zip</type>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 4 additions & 0 deletions src/it/makeBom/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ assert !bomFileJson.text.contains('"timestamp"')
assert bomFileJson.text.contains('"name" : "cdx:reproducible",')
assert bomFileJson.text.contains('"value" : "enabled"')

// dependency type=zip: check that artifact is described with license info (issue #431)
assert bomFileJson.text.contains('"group" : "com.ibm.websphere.appserver.features"')
assert bomFileJson.text.contains('"name" : "IBM International License Agreement for Non-Warranted Programs",')

File bomAggregateFileXml = new File(basedir, "target/bom-makeAggregateBom.xml")
File bomAggregateFileJson = new File(basedir, "target/bom-makeAggregateBom.json")

Expand Down

0 comments on commit d0e6cb5

Please sign in to comment.