Commit Graph

128 Commits

Author SHA1 Message Date
Artem Bilan
daa54a6dec Use Dependabot globstar option for dirs to scan
Move some deps from the top-level `dependencies.gradle` to their specific modules
2024-10-10 11:40:59 -04:00
Artem Bilan
bd2e7fc741 Upgrade to Spring Boot 3.2.7
Fix `AggregatorFunctionConfiguration` according to a new default logic in the `FluxMessageChannel`
2024-06-24 13:12:30 -04:00
Chris Bono
05f308c96c Fix spring-header-filter-function README
Fixes copy/pasta error from header enricher function.
2024-03-25 16:54:56 -05:00
Chris Bono
9d8cf1faa0 Fix links in spring-twitter-function README 2024-03-25 16:52:40 -05:00
Christian Tzolov
55f09da388 GH-20: Add Computer Vision function
Fixes: #20

* Update djl spring to `0.26`
2024-03-20 17:59:20 -04:00
Artem Bilan
77112eb8a1 Clean up README files, fix typos and broken links 2024-03-20 15:57:35 -04:00
Artem Bilan
946b5969da Various refactoring and improvements
* Remove `MessageChannel` beans whenever their really don't need to be exposed into the target application context.
Use local property definition instead in the configuration class
* Make Twitter `Consumer` configurations conditional on their required properties
to avoid auto-configuration for those bean which are not going to be used in the target application
2024-03-07 14:51:36 -05:00
Chris Bono
de6559733d Update to Spring Boot 3.3.0-M1
This commit updates the spring-boot-dependencies version to `3.3.0-M1`.

This update also transitively updates the AssertJ core library to
version `3.25.1` which introduces a deprecation for
`AbstractAssert#toList`. As such, these deprecated usages are replaced
in several tests with `AbstractAssert#asInstanceOf`.

Resolves #10
2024-02-05 11:06:54 -05:00
Chris Bono
0f65110e89 Remove Tensorflow modules
This commit removes the following Tensorflow 1.0 related modules:

- spring-tensorflow-common
- spring-image-recognition-function
- spring-object-detection-function
- spring-semantic-segmentation-function

These may be resurrected at a later date but re-implemented with
either DeepJavaLibrary or TensorFlow 2.0.

* Remove Tensorflow modules from README.adoc

* Remove protobuf - was only used by Tensorflow
2024-01-16 17:02:49 -05:00
Artem Bilan
e2f721b69f Make spring-twitter-function as auto-config
* Fix Checkstyle violations in this module
* Make all the Twitter function auto-configurations as conditional on their specific properties
to avoid extra beans not expected in the target application
* Fix README respectively
2024-01-10 11:21:21 -05:00
Artem Bilan
e1874eee92 Make header-enricher &header-filter functions as auto-config
* Fix Checkstyle violations in those module
2024-01-10 10:09:31 -05:00
Artem Bilan
97c3be83af Make spring-task-launch-request-function as auto-config
* Also make a `spring-spel-function`, `spring-filter-function` as auto-config
* Fix Checkstyle violations in those module, as well as in the `spring-payload-converter-function`
2024-01-10 09:54:03 -05:00
Artem Bilan
0f9065df78 GH-21: Fix README for splitter-function
Fixes #21

* Change the copy/paste artifact with `header enricher` to `splitter`
2024-01-10 09:02:56 -05:00
Artem Bilan
8ef105b9c5 Make Mongo & JDBC modules as auto-config
* Also make a `spring-splitter-function` as an auto-config since it used in Mongo & JDBC suppliers
* Fix all their Checkstyle violations
2024-01-09 13:10:18 -05:00
Artem Bilan
090ca28233 Make HTTP modules as auto-configuration
* Fix all the Checkstyle violations and compiler warnings
2024-01-08 12:51:04 -05:00
Artem Bilan
8e64a131f7 Add updateCopyrights Gradle task
* Fix Checkstyle violations for `spring-config-common` and `spring-aggregator-function`
2024-01-03 14:46:20 -05:00
Chris Bono
836708f0f2 GH-7: Add checkstyle and javaformat plugins
Fixes: #7

* Run `./gradlew format`
* Updates from PR review suggestions
2024-01-03 10:40:42 -05:00
Chris Bono
84e732da08 Prefix function names with spring-
* Add `spring-` prefix to function names

Fixes: #9

This commit renames each sub-module in the common, consumer, function
and supplier groups with a prefix of `spring-`.

* Update README.adoc links to new prefixed names
2024-01-02 14:07:00 -05:00
Artem Bilan
5cfbbecb8b Adjust dependency management for Dependabot
* Add `com.github.spotbugs` plugin to avoid warnings about missed nullability annotations
* Make `TimeSupplierConfiguration` as an auto-configuration
* Add `io.debezium:debezium-bom` as the first one to let others override its deps versions
* Move `org.springframework.boot:spring-boot-dependencies` after `io.awspring.cloud:spring-cloud-aws-dependencies`
to override its deps versions (e.g. `jakarta.mail` `1.0.0` > `2.0.2`)
2023-12-23 12:42:44 -05:00
Artem Bilan
d20fb3e5fa Refactor version props to dependencies.gradle
This is what we need to satisfy Dependabot expectations
2023-12-22 17:04:19 -05:00
Artem Bilan
19f904eb66 Migrate project to Gradle
* Upgrade all the dependencies to the latest versions
* Fix some incompatibilities
* Fix some warnings
2023-11-23 15:45:29 -05:00
GitHub Actions Bot
180d4e55e8 Next development version 4.0.1-SNAPSHOT / 2022.0.1-SNAPSHOT 2023-10-27 21:14:16 -05:00
Artem Bilan
cf9d8cd79c GH-500: Workaround for non-serializable header (#503)
Fixes https://github.com/spring-cloud/stream-applications/issues/500

When `listeners` are provided for `DefaultKafkaConsumerFactory`,
the target `KafkaConsumer` instance is proxied.
The `java.lang.reflect.Proxy` is `Serializable`,
but the value it is wrapping is not.
When the `MessageHeaders` is serialized (e.g. into persistent `MessageStore`),
it checks for `Serializable` type only on top-level object of the header.
Therefore, the `Proxy` is passing condition, but eventually we fail
with `NotSerializableException`, since the proxied object is not like that

* Remove `kafka_consumer` from a message before it reaches an aggregator
with its logic to serialize message into the store

This is a workaround until Spring for Apache Kafka is released
with the fix: https://github.com/spring-projects/spring-kafka/pull/2822
2023-09-22 15:02:02 -05:00
GitHub Actions Bot
21079bdc54 Next development version 4.0.0-SNAPSHOT / 2022.0.0-SNAPSHOT 2023-07-21 12:40:45 +00:00
GitHub Actions Bot
4a595f2284 Release 4.0.0-RC2 / 2022.0.0-RC2 2023-07-21 12:40:08 +00:00
GitHub Actions Bot
c7548ae4e3 Next development version 4.0.0-SNAPSHOT / 2022.0.0-SNAPSHOT 2023-07-20 14:56:01 +00:00
GitHub Actions Bot
5eade0d669 Release 4.0.0-RC2 / 2022.0.0-RC2 2023-07-20 14:55:34 +00:00
GitHub Actions Bot
bcdb881fac Next development version 4.0.0-SNAPSHOT 2023-06-14 04:47:46 +00:00
GitHub Actions Bot
358be92abd Release 4.0.0-RC1 2023-06-14 04:47:29 +00:00
Artem Bilan
bc756a34b0 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
Corneil du Plessis
0c0673552a Restore change for Mongo Tests. 2023-06-08 23:56:57 +02:00
Corneil du Plessis
a54d602d5c [Update] Spring Boot to 3.1.0 2023-06-08 18:47:25 +02:00
abilan
5ecec94121 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
Artem Bilan
745d270dde 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
e52419e35b Next development version 4.0.0-SNAPSHOT 2023-05-25 11:30:37 +00:00
GitHub Actions Bot
17288d84b8 Release 4.0.0-M2 2023-05-25 11:30:19 +00:00
abilan
53d122fa15 Disable DefaultAggregatorTests 2023-05-02 17:12:36 -04:00
Corneil du Plessis
a95bfaf10d Revert deploy-plugin to 2.8.2 for stream-applications-descriptor 2023-04-21 11:07:43 +02:00
Corneil du Plessis
9adb9c9256 Fix header filter test. Improve aggregator-filter test configuration. 2023-04-06 12:21:08 +02:00
Corneil du Plessis
bd5bf620be Added header-filter function and processor. 2023-04-05 18:02:33 +02:00
Corneil du Plessis
af6cd2f188 GH-430: Change Filter function to non-reactive
Fixes https://github.com/spring-cloud/stream-applications/issues/430

Fix greenmail exclusion.
Added -X for github.debug
2023-02-14 11:23:31 -05:00
Corneil du Plessis
c02126911a Added logging to aggregator. 2023-02-14 16:59:41 +02:00
Corneil du Plessis
f0aed8d40a Remove assertion for list 2023-02-09 12:29:59 +02:00
Corneil du Plessis
f01e6383e5 Remove assertion for list 2023-02-09 11:39:33 +02:00
Corneil du Plessis
202de585ad Increase timeout for DefaultAggregatorTests 2023-02-07 21:40:28 +02:00
Corneil du Plessis
5b6ded7358 Added xmpp to the documentation.
Fixing remaining versions.

Updates #429
2023-02-02 18:51:01 +02:00
Corneil du Plessis
c6694a9771 Added <protocArtifact>com.google.protobuf:protoc:${protobuf.version}</protocArtifact> to protoc-jar-maven-plugin in object-detection-function. 2023-01-17 11:25:55 +02:00
Corneil du Plessis
97b5906478 Fix checkstyle errors. 2023-01-12 11:05:43 +02:00
Corneil du Plessis
798c8a4361 Fix object-detection dependencies and cleanup samples. 2023-01-12 10:50:28 +02:00
Chris Bono
019cfcd932 GH-327: Use TestSocketUtils from spring-test (#420)
Fixes https://github.com/spring-cloud/stream-applications/issues/327

- Delete local TSU temporary implementations
- Replace local TSU w/ spring-test TSU
2023-01-11 11:33:31 -05:00