Skip to content

Commit eab4c20

Browse files
committed
Implement and document SBOM support (apache/logging-log4j2#1707)
1 parent 0981b92 commit eab4c20

26 files changed

+107
-25
lines changed

pom.xml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
~ See the License for the specific language governing permissions and
1616
~ limitations under the License.
1717
-->
18-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
18+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" child.project.url.inherit.append.path="false" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
1919

2020
<modelVersion>4.0.0</modelVersion>
2121

2222
<parent>
2323
<groupId>org.apache.logging</groupId>
2424
<artifactId>logging-parent</artifactId>
25-
<version>10.1.1</version>
25+
<version>10.2.0</version>
2626
<relativePath />
2727
</parent>
2828

@@ -101,7 +101,7 @@
101101
<module>log4j-api-kotlin-benchmark</module>
102102
</modules>
103103

104-
<scm>
104+
<scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false" child.scm.url.inherit.append.path="false">
105105
<connection>scm:git:[email protected]:apache/logging-log4j-kotlin.git</connection>
106106
<developerConnection>scm:git:[email protected]:apache/logging-log4j-kotlin.git</developerConnection>
107107
<tag>HEAD</tag>
@@ -118,6 +118,10 @@
118118
<url>https://github.com/apache/logging-log4j-kotlin/actions</url>
119119
</ciManagement>
120120

121+
<distributionManagement>
122+
<downloadUrl>https://logging.apache.org/log4j/kotlin/latest/#distribution</downloadUrl>
123+
</distributionManagement>
124+
121125
<properties>
122126

123127
<!-- project version -->
@@ -261,6 +265,22 @@
261265

262266
<plugins>
263267

268+
<!-- `cyclonedx-maven-plugin` doesn't exclude not installed/deployed modules: https://github.com/CycloneDX/cyclonedx-maven-plugin/issues/409
269+
This `generate-sbom` execution override configures such exclusions. -->
270+
<plugin>
271+
<groupId>org.cyclonedx</groupId>
272+
<artifactId>cyclonedx-maven-plugin</artifactId>
273+
<executions>
274+
<execution>
275+
<id>generate-sbom</id>
276+
<configuration combine.self="append">
277+
<excludeArtifactId>log4j-api-kotlin-benchmark</excludeArtifactId>
278+
<excludeArtifactId>log4j-api-kotlin-sample</excludeArtifactId>
279+
</configuration>
280+
</execution>
281+
</executions>
282+
</plugin>
283+
264284
<plugin>
265285
<groupId>org.jetbrains.kotlin</groupId>
266286
<artifactId>kotlin-maven-plugin</artifactId>

src/changelog/.1.x.x/add-sbom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one or more
4+
~ contributor license agreements. See the NOTICE file distributed with
5+
~ this work for additional information regarding copyright ownership.
6+
~ The ASF licenses this file to you under the Apache License, Version 2.0
7+
~ (the "License"); you may not use this file except in compliance with
8+
~ the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xmlns="http://logging.apache.org/log4j/changelog"
20+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
21+
type="added">
22+
<author id="github:vy"/>
23+
<description format="asciidoc">Started generating CycloneDX SBOM with the recent update of `logging-parent` to version `10.2.0`</description>
24+
</entry>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one or more
4+
~ contributor license agreements. See the NOTICE file distributed with
5+
~ this work for additional information regarding copyright ownership.
6+
~ The ASF licenses this file to you under the Apache License, Version 2.0
7+
~ (the "License"); you may not use this file except in compliance with
8+
~ the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xmlns="http://logging.apache.org/log4j/changelog"
20+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
21+
type="changed">
22+
<author id="github:vy"/>
23+
<description format="asciidoc">Update `org.apache.logging:logging-parent` to version `10.2.0`</description>
24+
</entry>

src/changelog/1.0.0/.release.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
-->
1818
<release xmlns="http://logging.apache.org/log4j/changelog"
1919
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20-
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.1.xsd"
20+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
2121
date="2018-11-03" version="1.0.0"/>

src/changelog/1.0.0/LOG4J2-1705_Create_Kotlin_API.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<entry xmlns="http://logging.apache.org/log4j/changelog"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.1.xsd"
3+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
44
type="added">
55
<issue id="LOG4J2-3556" link="https://issues.apache.org/jira/browse/LOG4J2-1705"/>
66
<author id="github:jvz"/>

src/changelog/1.0.0/LOG4J2-2432_Make_namedLogger_more_discoverable.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<entry xmlns="http://logging.apache.org/log4j/changelog"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.1.xsd"
3+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
44
type="changed">
55
<issue id="LOG4J2-2432" link="https://issues.apache.org/jira/browse/LOG4J2-2432"/>
66
<author id="github:jvz"/>

src/changelog/1.1.0/.release.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
-->
1818
<release xmlns="http://logging.apache.org/log4j/changelog"
1919
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20-
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.1.xsd"
20+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
2121
date="2021-08-28" version="1.1.0"/>

src/changelog/1.1.0/LOG4J2-2433_Support_MDCs_with_coroutines.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<entry xmlns="http://logging.apache.org/log4j/changelog"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.1.xsd"
3+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
44
type="added">
55
<issue id="LOG4J2-2433" link="https://issues.apache.org/jira/browse/LOG4J2-2433"/>
66
<author id="github:rocketraman"/>

src/changelog/1.1.0/LOG4J2-2518_Support_suspend_functions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<entry xmlns="http://logging.apache.org/log4j/changelog"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.1.xsd"
3+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
44
type="added">
55
<issue id="LOG4J2-2518" link="https://issues.apache.org/jira/browse/LOG4J2-2518"/>
66
<author id="github:rocketraman"/>

src/changelog/1.1.0/LOG4J2-2843_Update_Kotlin_baseline_to_1.3.72.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<entry xmlns="http://logging.apache.org/log4j/changelog"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.1.xsd"
3+
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
44
type="changed">
55
<issue id="LOG4J2-2843" link="https://issues.apache.org/jira/browse/LOG4J2-2843"/>
66
<author id="github:rocketraman"/>

0 commit comments

Comments
 (0)