Skip to content

Commit a5c0f69

Browse files
authored
JSTEP-14: add SBOM generation (#368)
1 parent 239a8db commit a5c0f69

File tree

4 files changed

+23
-33
lines changed

4 files changed

+23
-33
lines changed

datatypes/pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ JDK 8 data types.
4040
<!-- Inherited from oss-base. Generate PackageVersion.java.-->
4141
<groupId>com.google.code.maven-replacer-plugin</groupId>
4242
<artifactId>replacer</artifactId>
43-
<executions>
44-
<execution>
45-
<id>process-packageVersion</id>
46-
<phase>generate-sources</phase>
47-
</execution>
48-
</executions>
43+
</plugin>
44+
<!-- 29-Apr-2025, tatu: SBOM generation [JSTEP-14] -->
45+
<plugin>
46+
<groupId>org.cyclonedx</groupId>
47+
<artifactId>cyclonedx-maven-plugin</artifactId>
4948
</plugin>
5049
<!-- 28-Mar-2019, tatu: Add rudimentary JDK9+ module info. To build with JDK 8
5150
will have to use `moduleInfoFile` as anything else requires JDK 9+

datetime/pom.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,15 @@
9898
<!-- Inherited from oss-base. Generate PackageVersion.java.-->
9999
<groupId>com.google.code.maven-replacer-plugin</groupId>
100100
<artifactId>replacer</artifactId>
101-
<executions>
102-
<execution>
103-
<id>process-packageVersion</id>
104-
<phase>generate-sources</phase>
105-
</execution>
106-
</executions>
101+
</plugin>
102+
<!-- 29-Apr-2025, tatu: SBOM generation [JSTEP-14] -->
103+
<plugin>
104+
<groupId>org.cyclonedx</groupId>
105+
<artifactId>cyclonedx-maven-plugin</artifactId>
107106
</plugin>
108107
<plugin>
109108
<groupId>org.apache.maven.plugins</groupId>
110109
<artifactId>maven-compiler-plugin</artifactId>
111-
<version>3.0</version>
112110
<inherited>true</inherited>
113111
<configuration>
114112
<source>${javac.src.version}</source>

parameter-names/pom.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,11 @@ introspection of method/constructor parameter names, without having to add expli
8484
<!-- Inherited from oss-base. Generate PackageVersion.java.-->
8585
<groupId>com.google.code.maven-replacer-plugin</groupId>
8686
<artifactId>replacer</artifactId>
87-
<executions>
88-
<execution>
89-
<id>process-packageVersion</id>
90-
<phase>generate-sources</phase>
91-
</execution>
92-
</executions>
9387
</plugin>
94-
<plugin>
95-
<groupId>org.apache.maven.plugins</groupId>
96-
<artifactId>maven-surefire-plugin</artifactId>
97-
<version>${version.plugin.surefire}</version>
88+
<!-- 29-Apr-2025, tatu: SBOM generation [JSTEP-14] -->
89+
<plugin>
90+
<groupId>org.cyclonedx</groupId>
91+
<artifactId>cyclonedx-maven-plugin</artifactId>
9892
</plugin>
9993
<!-- 28-Mar-2019, tatu: Add rudimentary JDK9+ module info. To build with JDK 8
10094
will have to use `moduleInfoFile` as anything else requires JDK 9+

pom.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,21 @@
6868
<build>
6969
<pluginManagement>
7070
<plugins>
71-
<plugin>
72-
<!-- Inherited from oss-base. Generate PackageVersion.java.-->
73-
<groupId>com.google.code.maven-replacer-plugin</groupId>
74-
<artifactId>replacer</artifactId>
75-
<executions>
71+
<plugin>
72+
<!-- Inherited from oss-base. Generate PackageVersion.java.-->
73+
<groupId>com.google.code.maven-replacer-plugin</groupId>
74+
<artifactId>replacer</artifactId>
75+
<executions>
7676
<execution>
7777
<id>process-packageVersion</id>
7878
<phase>generate-sources</phase>
7979
</execution>
80-
</executions>
81-
</plugin>
82-
83-
<plugin>
80+
</executions>
81+
</plugin>
82+
<plugin>
8483
<groupId>org.apache.maven.plugins</groupId>
8584
<artifactId>maven-surefire-plugin</artifactId>
86-
</plugin>
85+
</plugin>
8786
</plugins>
8887
</pluginManagement>
8988
</build>

0 commit comments

Comments
 (0)