Skip to content

Commit 8ca649c

Browse files
committed
Generate SBOMs using cyclonedx maven plugin
and specify JGit's license using its SPDX identifier. See https://gitlab.eclipse.org/eclipsefdn/emo-team/sbom/-/blob/main/docs/sbom.adoc#sbom-maven Change-Id: I8f022002c84200ea430325916fa38c3764979c02
1 parent f91afe5 commit 8ca649c

File tree

2 files changed

+68
-35
lines changed

2 files changed

+68
-35
lines changed

org.eclipse.jgit.packaging/pom.xml

+37
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121

2222
<name>JGit Tycho Parent</name>
2323

24+
<licenses>
25+
<license>
26+
<name>BSD-3-Clause</name>
27+
<url>https://www.eclipse.org/org/documents/edl-v10.php</url>
28+
</license>
29+
</licenses>
30+
2431
<properties>
2532
<java.version>11</java.version>
2633
<tycho-version>4.0.2</tycho-version>
@@ -198,6 +205,36 @@
198205
<resolver>p2</resolver>
199206
</configuration>
200207
</plugin>
208+
<plugin>
209+
<groupId>org.cyclonedx</groupId>
210+
<artifactId>cyclonedx-maven-plugin</artifactId>
211+
<version>2.7.9</version>
212+
<configuration>
213+
<projectType>library</projectType>
214+
<schemaVersion>1.4</schemaVersion>
215+
<includeBomSerialNumber>false</includeBomSerialNumber>
216+
<includeCompileScope>true</includeCompileScope>
217+
<includeProvidedScope>true</includeProvidedScope>
218+
<includeRuntimeScope>true</includeRuntimeScope>
219+
<includeSystemScope>true</includeSystemScope>
220+
<includeTestScope>false</includeTestScope>
221+
<includeLicenseText>false</includeLicenseText>
222+
<outputReactorProjects>true</outputReactorProjects>
223+
<outputFormat>json</outputFormat>
224+
<outputName>cyclonedx</outputName>
225+
<outputDirectory>${project.build.directory}</outputDirectory>
226+
<outputTimestamp>${project.build.outputTimestamp}</outputTimestamp>
227+
<verbose>false</verbose>
228+
</configuration>
229+
<executions>
230+
<execution>
231+
<phase>package</phase>
232+
<goals>
233+
<goal>makeAggregateBom</goal>
234+
</goals>
235+
</execution>
236+
</executions>
237+
</plugin>
201238
</plugins>
202239
<pluginManagement>
203240
<plugins>

pom.xml

+31-35
Original file line numberDiff line numberDiff line change
@@ -101,41 +101,8 @@
101101

102102
<licenses>
103103
<license>
104-
<name>Eclipse Distribution License (New BSD License)</name>
105-
<comments>
106-
All rights reserved.
107-
108-
Redistribution and use in source and binary forms, with or
109-
without modification, are permitted provided that the following
110-
conditions are met:
111-
112-
- Redistributions of source code must retain the above copyright
113-
notice, this list of conditions and the following disclaimer.
114-
115-
- Redistributions in binary form must reproduce the above
116-
copyright notice, this list of conditions and the following
117-
disclaimer in the documentation and/or other materials provided
118-
with the distribution.
119-
120-
- Neither the name of the Eclipse Foundation, Inc. nor the
121-
names of its contributors may be used to endorse or promote
122-
products derived from this software without specific prior
123-
written permission.
124-
125-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
126-
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
127-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
128-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
129-
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
130-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
131-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
132-
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
133-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
134-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
135-
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
136-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
137-
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
138-
</comments>
104+
<name>BSD-3-Clause</name>
105+
<url>https://www.eclipse.org/org/documents/edl-v10.php</url>
139106
</license>
140107
</licenses>
141108

@@ -600,6 +567,35 @@
600567
</execution>
601568
</executions>
602569
</plugin>
570+
<plugin>
571+
<groupId>org.cyclonedx</groupId>
572+
<artifactId>cyclonedx-maven-plugin</artifactId>
573+
<version>2.7.9</version>
574+
<configuration>
575+
<projectType>library</projectType>
576+
<schemaVersion>1.4</schemaVersion>
577+
<includeBomSerialNumber>true</includeBomSerialNumber>
578+
<includeCompileScope>true</includeCompileScope>
579+
<includeProvidedScope>true</includeProvidedScope>
580+
<includeRuntimeScope>true</includeRuntimeScope>
581+
<includeSystemScope>true</includeSystemScope>
582+
<includeTestScope>false</includeTestScope>
583+
<includeLicenseText>false</includeLicenseText>
584+
<outputReactorProjects>true</outputReactorProjects>
585+
<outputFormat>json</outputFormat>
586+
<outputName>cyclonedx</outputName>
587+
<outputDirectory>${project.build.directory}</outputDirectory>
588+
<verbose>false</verbose>
589+
</configuration>
590+
<executions>
591+
<execution>
592+
<phase>package</phase>
593+
<goals>
594+
<goal>makeAggregateBom</goal>
595+
</goals>
596+
</execution>
597+
</executions>
598+
</plugin>
603599
</plugins>
604600
</build>
605601

0 commit comments

Comments
 (0)