This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new e46ff9eaf migrate and improve jitpack example
e46ff9eaf is described below

commit e46ff9eaf112ee07f2d9bc71eb643d4f794c100c
Author: Kuthumi Pepple <[email protected]>
AuthorDate: Thu Jul 7 00:53:07 2022 +0100

    migrate and improve jitpack example
---
 examples/README.md            |  1 -
 examples/jitpack/Jitpack.java | 32 -----------------------
 examples/jitpack/README.md    | 59 -------------------------------------------
 3 files changed, 92 deletions(-)

diff --git a/examples/README.md b/examples/README.md
index 4d82c3a52..a5df31980 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -10,7 +10,6 @@ In this section you will find the most basic examples. Useful 
to start learning
 |---|---|---|
 | Languages | Simple integrations developed in various supported languages | 
[see examples](./languages/)|
 | User Config | Explore how to include a `property`, `secret`, `configmap` or 
file `resource` in your integration | [see examples](./user-config/)|
-| User Dependencies | Explore how to include a local dependency in your 
integration with Jitpack | [see examples](./jitpack/)|
 | Processor | Show how to include `Processor`s logic | [see 
examples](./processor/)|
 | Open API | `Open API` support | [see examples](./openapi/)|
 | Rest | Produce/Consume `REST`ful services | [see examples](./rest/)|
diff --git a/examples/jitpack/Jitpack.java b/examples/jitpack/Jitpack.java
deleted file mode 100755
index 352e60365..000000000
--- a/examples/jitpack/Jitpack.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-// camel-k: language=java
-
-import org.apache.camel.builder.RouteBuilder;
-import acme.App;
-
-public class Jitpack extends RouteBuilder {
-  @Override
-  public void configure() throws Exception {
-      from("timer:tick?period=2000")
-        .setBody()
-          .simple(App.capitalize("hello"))
-        .to("log:info");
-
-  }
-}
diff --git a/examples/jitpack/README.md b/examples/jitpack/README.md
deleted file mode 100644
index 71aa8b4c8..000000000
--- a/examples/jitpack/README.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# Jitpack Camel K examples
-
-Find useful examples about how to use Jitpack in a Camel K integration.
-
-## How to package a dependency
-
-Camel K supports [Jitpack](https://jitpack.io/) to allow packaging your local 
code into a running Integration. The operator will recognize the major `git` 
repositories and provide all the needed configuration to package the dependency 
and locally install into Camel K artifacts repository. As an example, we can 
use [a sample jitpack project](https://github.com/squakez/samplejp), which 
contains some developments on `main` branch, a final release tagged as `v1.0` 
and other developments ongo [...]
-
-Within your route, you can import the code as you'd normally do with any other 
library:
-
-```
-import org.apache.camel.builder.RouteBuilder;
-import acme.App;
-
-public class Jitpack extends RouteBuilder {
-  @Override
-  public void configure() throws Exception {
-      from("timer:tick?period=2000")
-        .setBody()
-          .simple(App.capitalize("hello"))
-        .to("log:info");
-
-  }
-}
-```
-
-Once done, you must just reference the project in `kamel run -d` option, ie 
`-d github:squakez/samplejp`.
-
-### Package the default branch (main)
-
-You can choose to use the default dependency without specifying a tag or 
branch, that will fetch the source code on `main` branch:
-```
-kamel run Jitpack.java --dev -d github:squakez/samplejp
-
-...
-[1] 2021-11-23 16:00:59,305 INFO  [info] (Camel (camel-1) thread #0 - 
timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: HELLO]
-...
-```
-
-### Package another branch (1.0.0)
-
-You can choose to compile the source code stored on a given branch, ie, on 
`1.0.0` branch:
-```
-kamel run Jitpack.java --dev -d github:squakez/samplejp:1.0.0-SNAPSHOT
-
-...
-[1] 2021-11-23 16:04:30,840 INFO  [info] (Camel (camel-1) thread #0 - 
timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: 
v1.0.0-SNAPSHOT:HELLO]
-...
-```
-### Package a fixed release tagged
-
-You can also choose to package the source code released with a `tag`, ie 
`v1.0`:
-```
-kamel run Jitpack.java --dev -d github:squakez/samplejp:v1.0
-
-...
-[1] 2021-11-23 16:01:49,409 INFO  [info] (Camel (camel-1) thread #0 - 
timer://tick) Exchange[ExchangePattern: InOnly, BodyType: String, Body: 
v1.0.0:HELLO]
-...
-```

Reply via email to