Commit Graph

23 Commits

Author SHA1 Message Date
Chris Bono
6f9776f94e Convert to Autoconfiguration.imports 2022-10-02 10:58:48 -05:00
Chris Bono
002204270e Remove ${revision} from pom.xml files 2022-10-02 10:58:48 -05:00
Artem Bilan
7ed748687e GH-195: Introduce ComponentCustomizer (#273)
Fixes #195 

* Introduce a `ComponentCustomizer` contract to be exposed in
the end-user configuration for particular bean type
* introduce a `@CustomizationAware` annotation to mark a component 
as customizable
* Introduce a `ComponentCustomizationBeanPostProcessor` as an auto-configured
bean to apply `ComponentCustomizer` to a matching `@CustomizationAware` (if any)
* Use `@CustomizationAware` in the `FileSupplierConfiguration`
and demonstrate `ComponentCustomizer` feature in its tests
* Move `config-common` to functions parent to make the mentioned auto-configuration
available for all the functions
* Remove some other duplicated dependencies from the affected poms
2022-05-24 20:55:11 -05:00
Soby Chacko
760683cc2a Restructuing with maven revision feature
Preserving the maven revision feature from the previous commit,
but perform a bit more restructuring the hierarchy.
2020-10-13 15:17:52 -04:00
Daniel Frey
5e9382c23a Refactor hardcoded versions in functions submodule branches
This is so they can be updated in a minimal amount of places and leverage the maven hierarchy to propagate them where appropriate.
While working with SNAPSHOT releases of Spring Boot, Spring Integration, and Spring Cloud, it required touching every pom.xml file
in order to reflect the use of the SNAPSHOT. After this change, it will only be required to change the property in the top
functions pom.xml and the versions will reflect to all submodules.

Maven introduced the ability use a key property, revision to propagate this information to the <parent> declarations in each pom.

This was enabled in Maven 3.5+
https://maven.apache.org/maven-ci-friendly.html
2020-10-13 15:15:59 -04:00
Soby Chacko
f257f48f78 Next version updates
Functions: 1.0.0-SNAPSHOT
  Core Apps: 3.0.0-SNAPSHOT
  Apps: 3.0.0-SNAPSHOT
  Aggregate Next:2020.0.0-SNAPSHOT
2020-09-29 18:28:20 -04:00
Soby Chacko
73a3e55299 Functions: Release - 1.0.0-M3 2020-09-29 14:59:33 -04:00
Christian Tzolov
b9f6d9e9a9 Fix another filter function checkstyle issue 2020-08-31 08:47:15 +02:00
Christian Tzolov
d899d0856b Fix a [ImportOrder] checkstyle issue 2020-08-31 08:05:36 +02:00
Artem Bilan
a91aa2cd3f GH-110: Fix filter function for emitting null (#111)
* GH-110: Fix filter function for emitting `null`

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

Turns out when functions are composed in the Spring Cloud Stream environment,
they are called via reactive wrappers which don't allow to emit `null` from the
`map()` operator.

* Make `filterFunction` fully reactive to reply on the `Flux.filter()` operator
* Add `config-common` for auto-conversion string configuration options into `Expression` instances
* Add `spring-boot-starter-json` dependency since it is required by the `SpelExpressionConverterConfiguration`
* Add `reactor-test` dependency to test the final solution
* Remove redundant dependencies from the `filter-processor`

* * Add `proxyBeanMethods = false` into `FilterFunctionConfiguration`
* Fix default expression to `true` instead of `payload`, which does not fit to filter logic
* Fix JavaDoc for `expression` property
* Remove redundant `application.properties` from the `filter-function`
2020-08-28 15:55:08 -04:00
Soby Chacko
d962e6e233 Fixing missing filter processor properties in README 2020-08-25 14:07:06 -04:00
David Turanski
f8c342077c Support filterFunction and spelFunction composition 2020-07-28 12:26:26 -04:00
Soby Chacko
d59e4f5d86 Next version updates
Functions: 1.0.0-SNAPSHOT
  Core Apps: 3.0.0-SNAPSHOT
  Apps: 3.0.0-SNAPSHOT
  Aggregate Next:2020.0.0-SNAPSHOT
2020-07-13 16:02:05 -04:00
Soby Chacko
7066283aa2 Functions: Release - 1.0.0-M2 2020-07-13 14:43:36 -04:00
Soby Chacko
49468e6148 Renaming internal test boot applications in functions 2020-07-02 18:31:58 -04:00
Soby Chacko
5c59ff6823 Next version updates
Functions: 1.0.0-SNAPSHOT
  Core Apps: 3.0.0-SNAPSHOT
  Apps: 3.0.0-SNAPSHOT
  Aggregate Build: 2020.0.0-SNAPSHOT
2020-06-26 13:49:35 -04:00
Soby Chacko
327641fb05 Functions: Release - 1.0.0-M1 2020-06-25 17:42:02 -04:00
David Turanski
f07085992b Add composite function support for the sources 2020-06-19 18:15:26 -04:00
Soby Chacko
f6a057d8b2 README changes.
Properties cleanup.
2020-06-04 15:55:18 -04:00
Soby Chacko
e2d59034c7 Update functions to 1.0.0-SNAPSHOT from BUILD-SNAPSHOT 2020-05-07 18:11:18 -04:00
Soby Chacko
f61fbb4dc9 Introducing checkstyle changes for functions 2020-05-06 17:42:11 -04:00
Soby Chacko
45fb7a55d2 Remove unnecessary .gitignore files 2020-05-04 17:56:39 -04:00
Soby Chacko
517ccd5b40 Initial Commit
Migrating the existing structure from the following location:
https://github.com/spring-cloud-stream-app-starters/stream-applications/tree/restructuring
2020-05-04 17:51:05 -04:00