Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Camel Quarkus 2.3.0, make the examples runnable against alternative BOMs #55

Merged
merged 6 commits into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/test-categories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ group-06:
group-07:
- kafka
- kamelet-chucknorris
group-08:
- jdbc-datasource
5 changes: 2 additions & 3 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,12 @@ jobs:
&& cd ${{ runner.temp }}/camel-quarkus \
&& echo "Current Camel Quarkus commit:" $(git rev-parse HEAD) \
&& ./mvnw ${MAVEN_ARGS} clean install -Dquickly
- name: mvn license:check formatter:validate impsort:check cq:sync-example-properties
- name: mvn license:check formatter:validate impsort:check
run: |
./mvnw-for-each.sh ${MAVEN_ARGS} \
license:check \
net.revelc.code.formatter:formatter-maven-plugin:validate \
net.revelc.code:impsort-maven-plugin:check \
org.l2x6.cq:cq-maven-plugin:0.33.0:sync-example-properties
net.revelc.code:impsort-maven-plugin:check
- name: Validate test categories YAML
run: |
VALID=true
Expand Down
516 changes: 263 additions & 253 deletions aws-lambda/pom.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.examples;
package org.acme.aws.lambda;

import javax.inject.Inject;
import javax.inject.Named;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.examples;
package org.acme.aws.lambda;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.examples;
package org.acme.aws.lambda;

import javax.enterprise.context.ApplicationScoped;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.examples;
package org.acme.aws.lambda;

public class Person {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.examples;
package org.acme.aws.lambda;

import io.quarkus.amazon.lambda.test.LambdaClient;
import io.quarkus.test.junit.QuarkusTest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.examples;
package org.acme.aws.lambda;

import io.quarkus.test.junit.NativeImageTest;

Expand Down
5 changes: 5 additions & 0 deletions docs/modules/ROOT/attachments/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"description": "Demonstrates how to set-up a Camel component (the `log` component in this case) programmatically using CDI",
"link": "https://github.com/apache/camel-quarkus-examples/tree/main/timer-log-cdi"
},
{
"title": "Connecting to a JDBC DataSource",
"description": "Shows how to connect to a Database using Datastores.",
"link": "https://github.com/apache/camel-quarkus-examples/tree/main/jdbc-datasource"
},
{
"title": "Custom `main()`",
"description": "Shows how to start Camel from a custom `main()` method",
Expand Down
29 changes: 17 additions & 12 deletions file-bindy-ftp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@

<artifactId>camel-quarkus-examples-file-bindy-ftp</artifactId>
<groupId>org.apache.camel.quarkus.examples</groupId>
<version>2.2.0</version>
<version>2.3.0-SNAPSHOT</version>

<name>Camel Quarkus :: Examples :: File Bindy FTP</name>
<description>Camel Quarkus Example :: File Bindy FTP</description>

<properties>
<camel-quarkus.version>2.2.0</camel-quarkus.version>
<quarkus.version>2.2.0.Final</quarkus.version>
<quarkus.platform.version>2.3.0.Final</quarkus.platform.version>
<camel-quarkus.platform.version>2.3.0</camel-quarkus.platform.version>

<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<camel-quarkus.platform.group-id>org.apache.camel.quarkus</camel-quarkus.platform.group-id>
<camel-quarkus.platform.artifact-id>camel-quarkus-bom</camel-quarkus.platform.artifact-id>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand All @@ -51,16 +56,16 @@
<dependencies>
<!-- Import BOM -->
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-bom</artifactId>
<version>${camel-quarkus.version}</version>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId>
<version>${quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-bom-test</artifactId>
<version>${camel-quarkus.version}</version>
<groupId>${camel-quarkus.platform.group-id}</groupId>
<artifactId>${camel-quarkus.platform.artifact-id}</artifactId>
<version>${camel-quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -174,9 +179,9 @@
</plugin>

<plugin>
<groupId>io.quarkus</groupId>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
<version>${quarkus.platform.version}</version>
</plugin>

<plugin>
Expand Down Expand Up @@ -223,7 +228,7 @@

<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<executions>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.example;
package org.acme.bindy.ftp;

import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.example;
package org.acme.bindy.ftp;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.example;
package org.acme.bindy.ftp;

import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.example;
package org.acme.bindy.ftp;

import io.quarkus.test.junit.NativeImageTest;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.example;
package org.acme.bindy.ftp;

import java.util.concurrent.TimeUnit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.example;
package org.acme.bindy.ftp;

import java.io.IOException;
import java.nio.file.Path;
Expand Down
30 changes: 21 additions & 9 deletions file-split-log-xml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@

<artifactId>camel-quarkus-examples-file-log-xml</artifactId>
<groupId>org.apache.camel.quarkus.examples</groupId>
<version>2.2.0</version>
<version>2.3.0-SNAPSHOT</version>

<name>Camel Quarkus :: Examples :: File To Log XML DSL</name>
<description>Camel Quarkus Example :: File To Log XML DSL</description>

<properties>
<camel-quarkus.version>2.2.0</camel-quarkus.version>
<quarkus.version>2.2.0.Final</quarkus.version>
<quarkus.platform.version>2.3.0.Final</quarkus.platform.version>
<camel-quarkus.platform.version>2.3.0</camel-quarkus.platform.version>

<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<camel-quarkus.platform.group-id>org.apache.camel.quarkus</camel-quarkus.platform.group-id>
<camel-quarkus.platform.artifact-id>camel-quarkus-bom</camel-quarkus.platform.artifact-id>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand All @@ -51,9 +56,16 @@
<dependencies>
<!-- Import BOM -->
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-bom</artifactId>
<version>${camel-quarkus.version}</version>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId>
<version>${quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>${camel-quarkus.platform.group-id}</groupId>
<artifactId>${camel-quarkus.platform.artifact-id}</artifactId>
<version>${camel-quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -146,9 +158,9 @@
</plugin>

<plugin>
<groupId>io.quarkus</groupId>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
<version>${quarkus.platform.version}</version>
</plugin>

<plugin>
Expand Down Expand Up @@ -196,7 +208,7 @@

<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<executions>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.acme.filereader;
package org.acme.file.xml;

public class DummyClass {
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.acme.filereader;
package org.acme.file.xml;

import io.quarkus.test.junit.NativeImageTest;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.acme.filereader;
package org.acme.file.xml;

import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
Expand Down
30 changes: 21 additions & 9 deletions health/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@

<artifactId>camel-quarkus-examples-health</artifactId>
<groupId>org.apache.camel.quarkus.examples</groupId>
<version>2.2.0</version>
<version>2.3.0-SNAPSHOT</version>

<name>Camel Quarkus :: Examples :: Health</name>
<description>Camel Quarkus Example :: Health Check</description>

<properties>
<camel-quarkus.version>2.2.0</camel-quarkus.version>
<quarkus.version>2.2.0.Final</quarkus.version>
<quarkus.platform.version>2.3.0.Final</quarkus.platform.version>
<camel-quarkus.platform.version>2.3.0</camel-quarkus.platform.version>

<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<camel-quarkus.platform.group-id>org.apache.camel.quarkus</camel-quarkus.platform.group-id>
<camel-quarkus.platform.artifact-id>camel-quarkus-bom</camel-quarkus.platform.artifact-id>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand All @@ -51,9 +56,16 @@
<dependencies>
<!-- Import BOM -->
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-bom</artifactId>
<version>${camel-quarkus.version}</version>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId>
<version>${quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>${camel-quarkus.platform.group-id}</groupId>
<artifactId>${camel-quarkus.platform.artifact-id}</artifactId>
<version>${camel-quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -145,9 +157,9 @@
</plugin>

<plugin>
<groupId>io.quarkus</groupId>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
<version>${quarkus.platform.version}</version>
</plugin>

<plugin>
Expand Down Expand Up @@ -194,7 +206,7 @@

<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<executions>
<execution>
Expand Down
Loading