Skip to content

Commit

Permalink
chore(doc): some dependency feature
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Jul 26, 2023
1 parent 5cc092f commit 4f70497
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions docs/modules/ROOT/pages/configuration/dependencies.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@ Automatic resolution is also a nice feature in xref:running/dev-mode.adoc[dev mo

NOTE: Camel K won't be able to resolve automatically the dependencies when your routes specify dynamic URIs.

[[dependencies-from-import]]
== Import path dependencies

While developing your route, you will start including references to Camel dependencies via Java (or any other DSL) import mechanism. Camel K is able to scan and detect such dependencies as well. Take the following example:

```java
import org.apache.camel.builder.RouteBuilder;
...
import org.apache.camel.component.kafka.KafkaComponent;

public class Test extends RouteBuilder {

@Override
public void configure() throws Exception {
from("timer:java?period={{time:1000}}").
...
}
}

```
Camel K will be able to include `camel-kafka` dependency as it discover scanning the import paths. No need to specify it in such circumstances.

[[dependencies-explicit]]
== Add explicit dependencies

Expand Down
2 changes: 1 addition & 1 deletion release.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,6 @@ git push upstream main
```
Where <new-version> represents the new version you want to bump and <replace-version> the version that was previously released.

Note: this action should also replace automatically the oldest nightly release Github Action with the newest one just created.
NOTE: this action should also replace automatically the oldest nightly release Github Action with the newest one just created.

You will also need to update the `docs/antora.yml` configuration in order to provide the proper versions for the upcoming release in `main` branch.

0 comments on commit 4f70497

Please sign in to comment.