This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-karaf.git
The following commit(s) were added to refs/heads/main by this push: new 36701831 Prepare release process 36701831 is described below commit 36701831cf4cd57fdbc3e380393f9e0e4caff44e Author: JB Onofré <jbono...@apache.org> AuthorDate: Thu Jul 18 15:24:46 2024 +0200 Prepare release process --- pom.xml | 184 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 179 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index bde50bd5..4eab8c0f 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,8 @@ limitations under the License. --> -<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> +<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> @@ -522,7 +523,8 @@ <!-- Camel Karaf OSGI version ranges --> <camel-osgi-version-clean>4.7</camel-osgi-version-clean> <camel-osgi-next-version-clean>4.8</camel-osgi-next-version-clean> - <camel-osgi-version-range>[${camel-osgi-version-clean},${camel-osgi-next-version-clean})</camel-osgi-version-range> + <camel-osgi-version-range>[${camel-osgi-version-clean},${camel-osgi-next-version-clean}) + </camel-osgi-version-range> <camel-osgi-import-camel-version>version="${camel-osgi-version-range}"</camel-osgi-import-camel-version> <camel-osgi-camel-import>org.apache.camel.*;${camel-osgi-import-camel-version},</camel-osgi-camel-import> @@ -532,7 +534,8 @@ <aries-version>1.10.3</aries-version> <azure-core-version>1.49.1</azure-core-version> <azure-identity-version>1.13.0</azure-identity-version> - <azure-messaging-eventhubs-checkpointstore-blob-version>1.19.5</azure-messaging-eventhubs-checkpointstore-blob-version> + <azure-messaging-eventhubs-checkpointstore-blob-version>1.19.5 + </azure-messaging-eventhubs-checkpointstore-blob-version> <azure-messaging-eventhubs-version>5.18.5</azure-messaging-eventhubs-version> <azure-storage-common-version>12.25.1</azure-storage-common-version> <geronimo-atinject-version>1.2</geronimo-atinject-version> @@ -553,7 +556,8 @@ <jaxb3-osgi-version>3.0.2</jaxb3-osgi-version> <jetty11-version>11.0.21</jetty11-version> <karaf-version>4.4.6</karaf-version> - <netty-incubator-transport-classes-io_uring-version>0.0.25.Final</netty-incubator-transport-classes-io_uring-version> + <netty-incubator-transport-classes-io_uring-version>0.0.25.Final + </netty-incubator-transport-classes-io_uring-version> <osgi-cmpn-version>7.0.0</osgi-cmpn-version> <osgi-resource-locator-version>2.5.0-b42</osgi-resource-locator-version> <osgi-service-event-version>1.4.1</osgi-service-event-version> @@ -665,8 +669,25 @@ <artifactId>maven-jar-plugin</artifactId> <version>${maven-jar-plugin-version}</version> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>${maven-release-plugin-version}</version> + <configuration> + <localCheckout>true</localCheckout> + <pushChanges>true</pushChanges> + <tagNameFormat>@{project.artifactId}-@{project.version}</tagNameFormat> + <useReleaseProfile>false</useReleaseProfile> + <preparationGoals>clean install</preparationGoals> + <goals>deploy</goals> + <!-- The profile we want to use when doing the release --> + <arguments>-Prelease,apache-release</arguments> + <autoVersionSubmodules>true</autoVersionSubmodules> + </configuration> + </plugin> </plugins> </pluginManagement> + <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -698,7 +719,8 @@ <Export-Service>${camel.osgi.export.service}</Export-Service> <_failok>${camel.osgi.failok}</_failok> <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy> - <_removeheaders>Ignore-Package,Include-Resource,Private-Package,Embed-Dependency</_removeheaders> + <_removeheaders>Ignore-Package,Include-Resource,Private-Package,Embed-Dependency + </_removeheaders> </instructions> <unpackBundle>true</unpackBundle> </configuration> @@ -706,4 +728,156 @@ </plugins> </build> + <profiles> + <profile> + <id>deploy</id> + <build> + <defaultGoal>deploy</defaultGoal> + <plugins> + <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> + <configuration> + <source>17</source> + <doclint>none</doclint> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>source-jar</id> + <build> + <plugins> + <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> + </plugins> + </build> + </profile> + <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>17</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> + </plugins> + </build> + </profile> + </profiles> + </project>