Commit Graph

1164 Commits

Author SHA1 Message Date
Christian Tzolov
a3c8cb4fc6 merged in main from project spring-cloud-dataflow-apps-plugin 2023-06-13 12:38:10 +02:00
Artem Bilan
a841beba15 GH-475: Add some missed nested props for apps (#476)
Fixes https://github.com/spring-cloud/stream-applications/issues/475

* Fix JDBC props for limited listed number of them
2023-06-12 23:35:10 -05:00
Artem Bilan
546eb0b2c9 GH-265: Add Kafka Supplier & Source (#474)
* Also add support for nested config props for `kafka-sink`

Fixes #265
2023-06-12 14:23:06 -05:00
abilan
6291e300ab Use Spring Integration version from Spring Boot
Rearrange version props in `stream-applications-build/pom.xml` by categories
for easy to read
2023-06-09 14:30:11 -04:00
Corneil du Plessis
d73a8f6841 Update to Spring Boot 3.1.0
See #470
2023-06-09 14:16:38 -04:00
Corneil du Plessis
681036401e Update build scripts to limit forkCount for tests to 1. 2023-06-09 15:52:54 +02:00
Corneil du Plessis
704a6ef4b1 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	stream-applications-build/pom.xml
2023-06-09 15:45:25 +02:00
abilan
7dc4d4a3f5 Fix mail apps for Spring Boot 3.1 2023-06-09 10:02:34 +02:00
Corneil du Plessis
701a681def Update get-build-version-params.sh 2023-06-09 08:12:53 +02:00
Corneil du Plessis
d29c5887ac Polish Mongo supplier. 2023-06-08 23:56:57 +02:00
Corneil du Plessis
ee8738e838 Restore change for Mongo Tests. 2023-06-08 23:56:57 +02:00
Corneil du Plessis
cab78639b1 [CI] Fix test support 2023-06-08 23:56:57 +02:00
Corneil du Plessis
7fe1d6b7da [CI] Fix test support 2023-06-08 23:56:48 +02:00
Corneil du Plessis
4e41dd311e Restore change for Mongo Tests. 2023-06-08 23:10:59 +02:00
Corneil du Plessis
10580f3dec [CI] Fix test support 2023-06-08 23:07:32 +02:00
Corneil du Plessis
ae0fcbe09d [CI] Fix test support 2023-06-08 23:05:50 +02:00
Corneil du Plessis
73f37132a1 [Branch] Spring Boot to 3.1.0 2023-06-08 18:57:23 +02:00
Corneil du Plessis
92871088d4 [Revert] Spring Boot to 3.0.7 2023-06-08 18:56:41 +02:00
Corneil du Plessis
f99016592f [Update] Spring Boot to 3.1.0 2023-06-08 18:47:25 +02:00
Corneil du Plessis
4abd19757e [CI] Update ci-pr to ensure apps are integration tests and not deployed when they are in the dependency tree. 2023-06-08 11:08:47 +02:00
Artem Bilan
0a0223a6cc GH-265: Add Kafka Publisher and Sink (#469)
* GH-265: Add Kafka Consumer and Sink

Fixes https://github.com/spring-cloud/stream-applications/issues/265

* Make `kafkaPublisher` based on the Spring for Apache Kafka auto-configuration
and Spring Integration channel adapter, essentially `KafkaProducerMessageHandler`
* Make this `KafkaPublisherConfiguration` as an auto-configuration by itself.
* Expose those simple properties required by the `KafkaProducerMessageHandlerSpec`
* Add `kafka-sink` module based on the `kafkaPublisher`
* Add `kafka-sink` into apps metadata properties
2023-06-07 21:01:45 -05:00
Corneil du Plessis
97d13e2a65 [CI] Fix ci-pr
Fixes #468
2023-06-06 20:54:54 +02:00
Chris Bono
3fed48902f Polish "GH-275: Mention ComponentCustomizer in READMEs"
- Swap out `mqtt-consumer` and `mongodb-supplier`snippets
2023-06-05 22:21:01 -04:00
abilan
35a37fac5a GH-275: Mention ComponentCustomizer in READMEs
Fixes https://github.com/spring-cloud/stream-applications/issues/275

Many functions make use of `ComponentCustomizer` ot let end-user
to provide any custom configuration for target component used by the function.
First of all for use-case which are not covered by standard configuration
properties and secondly for those options which cannot be represented
as a configuration option.

* Add a sentence to READMEs of those functions which make use of `ComponentCustomizer`
with an expected generic argument type
* Add README into `rabbit-supplier` where it is fully missed at the moment
2023-06-05 22:21:01 -04:00
Christian Tzolov
1557d0a5b5 Functions auto-configuration support
Requires `org.springframework.cloud:spring-cloud-dataflow-apps-generator-plugin version >= 1.0.8`.
2023-06-05 16:52:36 -04:00
Soby Chacko
e2c1c82d1d Update java.version to 17 2023-06-05 16:34:07 -04:00
Chris Bono
d7ba24fa01 GH-252: Remove legacy config properties metadata files
This commit removes all legacy config props metadata files
named `dataflow-configuration-metadata-whitelist.properties`.

This is safe with respect to SCDF because stream apps 4.x
require SCDF 2.11.x to launch the apps. Therefore, no existing
SCDF customers on an older SCDF version (that only supports
the legacy file) will be impacted - the users will all be on
the latest version of SCDF.

Fixes #252

* Renamed spring-configuration-metadata-whitelist.properties (removed "-whitelist")

* Renamed spring-configuration-metadata.properties to
dataflow-configuration-metadata.properties

* Fix rsocket

* Rsocket props now added back in

* Rename rsocket-sink metadate file to non-legacy format
2023-06-05 14:35:43 -04:00
Christian Tzolov
c888f45a1d Add auto-config support
- Add a marker value for the 'configClass' attriubte: 'AUTOCONFIGURATION'.
 - If the configClass=='AUTOCONFIGURATION' then the '@Import(configClass)' statment is dropped from the generated app.
 - Update maven versions to 3.9.x
 - Udate project versions from 1.0.7 to 1.0.8-SNAPSHOT

 Resolves #23
2023-06-05 14:33:37 +02:00
Christian Tzolov
11be59afd1 Move Debezium builder into standalone function common project (#463)
- Move the `DebeziumEngineBuilderAutoConfiguration` and META-INF configurations to new function project: debezium-autoconfigure.
 - Introduce the `EmbeddedEngineExecutorService` helper class for help DebezuimEngine implementations.
 - Move the relevant tests from debezium-supplier to the debeizum-autoconfigure.
 - Add detailed README documentation.
 - Adjust the debeizum-supplier and debezium-source configurations.
 - Clean the related tests.

 Resolves #462


---------

Co-authored-by: Artem Bilan <abilan@vmware.com>
2023-06-04 10:58:12 -05:00
Christian Tzolov
898938dd55 Update Debezium version and add mssql IT (#460)
* Update Debezium version from 2.2.0.Final to 2.2.1.Final
* Add Debezium mssql integration test
2023-05-31 12:17:22 -05:00
Artem Bilan
99d2525b3b GH-441: Add JsonBytesToMap function (#461)
Add `JsonBytesToMap` function to allow conversion between byte[] and JSON Map.

Fixes https://github.com/spring-cloud/stream-applications/issues/441

* Introduce a `JsonBytesToMap` as a part of a `payload-converter-function` module
which is auto-discovered by Spring Cloud Function scanning algorithm - the `functions` package.
* Add a `payload-converter-function` as dependency into an `aggregator-function`
* Compose `jsonBytesToMap|aggregatorFunction` for the `aggregator-processor`
* Verify a `JsonBytesToMap` function in action with an `AggregatorProcessorTests`
* Mentioned such a payload conversion in the `aggregator-processor` README
2023-05-30 18:25:27 -05:00
GitHub Actions Bot
bdc100a6c1 Next development version 4.0.0-SNAPSHOT 2023-05-25 11:30:37 +00:00
GitHub Actions Bot
251e1fb998 Release 4.0.0-M2 2023-05-25 11:30:19 +00:00
Corneil du Plessis
752da39825 Fix next-dev-version.sh usage 2023-05-25 12:45:08 +02:00
Corneil du Plessis
a0e1616fc6 Remove branch with tag release. 2023-05-25 11:14:49 +02:00
Corneil du Plessis
bb38683acc Change build/core to ubuntu-latest with default amount of cores. 2023-05-25 09:09:13 +02:00
Corneil du Plessis
876ae731a2 Reduce cores on build runner. 2023-05-25 08:54:20 +02:00
Christian Tzolov
7f33eabb84 Factor out the Debezium Engine Builder auto-configuration (#459)
* Factor out the Debezium Engine Builder auto-configuration

 - Rename DebeziumEngineAutoConfiguration into DebeziumEngineBuilderAutoConfiguration.
 - Make the DebeziumEngineBuilderAutoConfiguration auto-create a DebeizumEngine.Builder instance.
 - Move the DebeizumEngine bean creation to the DebeziumReactiveConsumerConfiguration.
 - Make DebeziumEngineBuilderAutoConfiguration conditional on Debeizum connecgtor on the class path and debezium.properties.connector.class property set.
 - Minor improvment on the serialization format class resolution.
 - Add support for debezium header serialization format, required for the change event headers to work.

 Resolves #458
2023-05-24 16:03:18 -05:00
Corneil du Plessis
b556666309 Increase core build runner 2023-05-24 19:39:48 +02:00
Corneil du Plessis
c484eb79cb Merge remote-tracking branch 'origin/main' 2023-05-24 19:33:08 +02:00
Corneil du Plessis
e61e715ee5 Added git config 2023-05-24 19:30:00 +02:00
Chris Bono
f90c20498d [Release] Kickoff 4.0.0-M2 2023-05-24 11:05:11 -05:00
Christian Tzolov
4bc5b5647f Document how to configure debezium offsets (#457)
* Document how to configure debezium offsets

 Resolves #321

* clarify the custom offset storage approach
2023-05-24 09:40:39 -04:00
Corneil du Plessis
f59cf7b6dc Updated to Spring Boot 3.0.7 2023-05-23 11:54:00 +02:00
Chris Bono
57de38770d Fix metrics export for Spring Boot 3.x (#455)
* Fix metrics export for Spring Boot 3.x

- add back in Prometheus Rsocket proxy dep
- rename `managment.metrics.export` properties
2023-05-13 17:47:38 -05:00
Chris Bono
5fbd3c791b Remove spring-cloud-sleuth (#454) 2023-05-12 13:49:02 -05:00
Corneil du Plessis
0266f5be29 Remove class from DebeziumFormat 2023-05-04 16:19:27 +02:00
Corneil du Plessis
bafa7b2133 Fix repositories 2023-05-04 16:19:16 +02:00
Corneil du Plessis
05a64067e4 Merge remote-tracking branch 'origin/main' 2023-05-03 14:31:57 +02:00
Corneil du Plessis
f667c0dc94 Ensure bootVersion=3 2023-05-03 14:31:48 +02:00