diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f289eb1e63bd0f76f20aeab64061db5837500d53..a899b745491f384efc257faed8006cd89bf26fa0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -91,9 +91,13 @@ build-and-deploy-jars: - tags script: - mvn $MAVEN_OPTS $MAVEN_CLI_OPTS $MAVEN_DEPLOY_OPTS -U clean deploy + - cp target/bom.json . artifacts: name: WEBAPP_DEB_PACKAGES + paths: + - ./bom.json reports: # Declare the JUnit reports (recursive pattern for multi-module projects) junit: - "**/target/*-reports/TEST-*.xml" + diff --git a/pom.xml b/pom.xml index 279aff7f77b87725238f441790fd8dcc8fc92720..7138a3e186677fc287521ed8a16c33f6c752718c 100644 --- a/pom.xml +++ b/pom.xml @@ -7,12 +7,15 @@ <groupId>info.textgrid.middleware</groupId> <artifactId>message-beans</artifactId> <version>4.0.0-SNAPSHOT</version> + <name>DARIAHDE :: Repository :: Message Driven Beans</name> + <description>Message driven beans for the TextGrid and DARIAH-DE Repository</description> <properties> <compiler-plugin.version>3.11.0</compiler-plugin.version> <common.version>5.0.1-SNAPSHOT</common.version> <commons-imaging.version>1.0-alpha3</commons-imaging.version> <commons-io.version>2.15.1</commons-io.version> <crud.version>11.9.5-SNAPSHOT</crud.version> + <cyclonedx-maven-plugin.version>2.7.0</cyclonedx-maven-plugin.version> <maven.compiler.release>17</maven.compiler.release> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> @@ -90,6 +93,43 @@ <version>${commons-io.version}</version> </dependency> </dependencies> + <profiles> + <profile> + <id>sbom</id> + <build> + <plugins> + <plugin> + <groupId>org.cyclonedx</groupId> + <artifactId>cyclonedx-maven-plugin</artifactId> + <version>${cyclonedx-maven-plugin.version}</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>makeAggregateBom</goal> + </goals> + </execution> + </executions> + <configuration> + <outputFormat>JSON</outputFormat> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>native</id> + <activation> + <property> + <name>native</name> + </property> + </activation> + <properties> + <skipITs>false</skipITs> + <quarkus.package.type>native</quarkus.package.type> + </properties> + </profile> + </profiles> <build> <plugins> <plugin> @@ -147,18 +187,4 @@ </plugin> </plugins> </build> - <profiles> - <profile> - <id>native</id> - <activation> - <property> - <name>native</name> - </property> - </activation> - <properties> - <skipITs>false</skipITs> - <quarkus.package.type>native</quarkus.package.type> - </properties> - </profile> - </profiles> </project>