This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-upgrade-recipes.git
The following commit(s) were added to refs/heads/main by this push: new c93cbd6 Adding a release profile c93cbd6 is described below commit c93cbd64f31e46b5511ea2f2bc4b433ce84923c8 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Jul 23 10:08:46 2024 +0200 Adding a release profile Signed-off-by: Andrea Cosentino <anco...@gmail.com> --- pom.xml | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) diff --git a/pom.xml b/pom.xml index ead93e8..366e547 100644 --- a/pom.xml +++ b/pom.xml @@ -356,4 +356,144 @@ </plugin> </plugins> </build> + <profiles> + <profile> + <id>release</id> + <activation> + <property> + <name>release</name> + </property> + </activation> + <properties> + <skipTests>true</skipTests> + </properties> + <build> + <plugins> + <!-- We want to deploy the artifact to a staging location for perusal --> + <plugin> + <inherited>true</inherited> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <configuration> + <updateReleaseInfo>true</updateReleaseInfo> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + <configuration> + <source>8</source> + <additionalOptions>${javadoc.opts}</additionalOptions> + <!-- disable Javadoc linting for buildung the release with Java 11 --> + <doclint>none</doclint> + </configuration> + </plugin> + <!-- We want to sign the artifact, the POM, and all attached artifacts --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <configuration> + <passphrase>${gpg.passphrase}</passphrase> + <useAgent>${gpg.useagent}</useAgent> + </configuration> + <executions> + <execution> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <configuration> + <failIfNoSpecifiedTests>false</failIfNoSpecifiedTests> + <failIfNoTests>false</failIfNoTests> + <skipITs>true</skipITs> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <failIfNoSpecifiedTests>false</failIfNoSpecifiedTests> + <failIfNoTests>false</failIfNoTests> + <skipTests>true</skipTests> + </configuration> + <executions> + <execution> + <id>default-test</id> + <phase>none</phase><!-- No need to even load the plugin during releases --> + </execution> + </executions> + </plugin> + <plugin> + <groupId>com.mycila</groupId> + <artifactId>license-maven-plugin</artifactId> + <executions> + <execution> + <id>license-format</id> + <goals> + <goal>format</goal> + </goals> + <phase>none</phase><!-- No need to even load the plugin during releases --> + </execution> + </executions> + </plugin> + <plugin> + <groupId>net.revelc.code.formatter</groupId> + <artifactId>formatter-maven-plugin</artifactId> + <executions> + <execution> + <id>code-format</id> + <goals> + <goal>format</goal> + </goals> + <phase>none</phase><!-- No need to even load the plugin during releases --> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.cyclonedx</groupId> + <artifactId>cyclonedx-maven-plugin</artifactId> + <version>${cyclonedx-maven-plugin-version}</version> + <inherited>false</inherited> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>makeAggregateBom</goal> + </goals> + </execution> + </executions> + <configuration> + <outputName>${project.artifactId}-${project.version}-sbom</outputName> + </configuration> + </plugin> + + </plugins> + </build> + </profile> + </profiles> </project>