Commit Graph

446 Commits

Author SHA1 Message Date
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
26479fb1bc Use Testcontainers for RabbitMQ modules
* Remove `ownConnection` feature from RabbitMQ modules.
It does not bring too much value over Spring Boot config.
Plus no one else modules tries to mimic such a behavior.
So, fully rely on Spring Boot auto-configuration for RabbitMQ as well.
2024-01-09 10:10:23 -05:00
Artem Bilan
f509b15cde Make RabbitMQ modules as auto-configuration
* Fix all the Checkstyle violations and compiler warnings
* Add tests to these modules
2024-01-08 19:10:22 -05:00
Artem Bilan
80e0b80a30 Make WebSocket modules as auto-configuration
* Fix all the Checkstyle violations and compiler warnings
* Also fix Checkstyle violations for `spring-time-supplier`
2024-01-08 14:17:29 -05:00
Artem Bilan
373fbdd8a2 Make S3 modules as auto-configuration
* Fix all the Checkstyle violations and compiler warnings
* Fix HTTP Supplier props prefix in the README
2024-01-08 13:13:43 -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
5d4cee0565 Move sftpMessageSource.start() out of Publisher
The `AbstractRemoteFileStreamingMessageSource.start()` does nothing, but state change.
Therefore, it is safe to call from whenever is convenient for us
2024-01-08 12:07:43 -05:00
Artem Bilan
476bb6d31e Fix SftpSupplier bean naming race condition
Since we create several `MessageSource` bean in the configuration
it is better to be more specific with their injection via `@Qualifier`
2024-01-08 11:51:24 -05:00
Artem Bilan
56f75fb6db GH-2: Expose a @MessagingGateway for sftpConsumer
Fixes: #2

* To avoid `@Lazy` and other possible injection problems
when an `IntegrationFlow` is not ready yet, provide a `@MessagingGateway(name = "sftpConsumer")`
explicitly for the `MessageConsumer` in the `SftpConsumerConfiguration`

* Make SFTP modules as auto-configuration
* Fix Checkstyle violations in those modules
2024-01-08 11:37:05 -05:00
Artem Bilan
985a753819 Make ZeroMQ modules as auto-configuration
* Fix all the Checkstyle violations in these modules
2024-01-08 10:21:20 -05:00
Artem Bilan
dceec3250b Make spring-syslog-supplier as auto-configuration
* Fix `SyslogSupplierConfiguration` according to the `@AutoConfiguration` expectations
* Fix all the Checkstyle violations in the `spring-syslog-supplier`
2024-01-08 09:58:43 -05:00
dependabot[bot]
63f6430edb Bump org.springframework.integration:spring-integration-aws (#19)
Bumps [org.springframework.integration:spring-integration-aws](https://github.com/spring-projects/spring-integration-aws) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/spring-projects/spring-integration-aws/releases)
- [Commits](https://github.com/spring-projects/spring-integration-aws/compare/v3.0.4...v3.0.5)

---
updated-dependencies:
- dependency-name: org.springframework.integration:spring-integration-aws
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-07 06:11:15 +00:00
Artem Bilan
76e7ed1b69 Make TCP modules as auto-config
* Fix their Checkstyle violations
2024-01-05 15:11:55 -05:00
Artem Bilan
e1a1845dab Various improvements for MQTT modules code style 2024-01-05 14:05:59 -05:00
Artem Bilan
fbe0d220f7 Make MQTT modules as auto-config
* Fix all the Checkstyle violations for those modules
* Introduce a `MosquittoContainerTest` contract into the `spring-function-test-support`
and use it in the MQTT modules
* Fix READMEs for previously migrated modules to auto-configuration
2024-01-05 13:57:55 -05:00
Artem Bilan
3f349ca451 Make file and FTP modules as auto-config
* Fix all the Checkstyle violations for those modules
2024-01-05 12:48:09 -05:00
Artem Bilan
296d80f0a8 Add CONTRIBUTING.adoc
* Remove `CODE_OF_CONDUCT.adoc` since it is supplied from the GH org configuration
2024-01-05 11:58:25 -05:00
dependabot[bot]
40aadd625b Bump the development-dependencies group with 1 update (#18)
Bumps the development-dependencies group with 1 update: com.github.spotbugs.


Updates `com.github.spotbugs` from 6.0.4 to 6.0.5

---
updated-dependencies:
- dependency-name: com.github.spotbugs
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-04 21:59:07 +00:00
Artem Bilan
d59c25fb41 Fix metadata auto-config for optional SC-AWS dep 2024-01-04 16:56:27 -05:00
Artem Bilan
0ea8b8afa0 Fix Checkstyle violations for spring-metadata-store-common
* Move `org.apache.curator:curator-test` to the `dependencies.gradle`
and include it into a `dev` group for Dependabot
2024-01-04 16:50:39 -05:00
Artem Bilan
bf35cee6fc Fix Checkstyle violations for spring-function-test-support 2024-01-04 16:37:18 -05:00
Artem Bilan
38f0ca077c Add schedule & concurrency to CI workflow
* The `schedule` allows to have a fresh snapshot every night (`--rerun-tasks` should ensure we build against cache)
* The `concurrency` allows to cancel previously running and scheduled workflows: only the last built SNAPSHOT matters
2024-01-04 16:23:25 -05:00
Artem Bilan
f6cb25742b Upgrade to the latest reusable workflows 2024-01-04 16:15:22 -05:00
Artem Bilan
de6a659ab1 Make Twitter modules as auto-configuration
* Fix all the Checkstyle violation in the effected modules
* Fix Twitter modules READMEs to reflect a nature of the auto-configuration
* Add (and mention in README) new `enabled` properties for various Twitter supplier configurations:
by default all of them would be started just by the presence in classpath
2024-01-04 16:14:16 -05:00
Artem Bilan
eb4ce0615a Upgrade to Debezium 2.5.0.Final
* Fix all the Checkstyle violations in Debezium modules
* Fix developer emails in the `publish-maven.gradle`
2024-01-04 13:27:08 -05:00
Artem Bilan
7b9bd3f3a9 Make XMPP functions as auto-config
* Fix all the Checkstyle violations for those modules
2024-01-03 17:13:51 -05:00
Artem Bilan
7b06b8f4ba Make spring-wavefront-consumer as auto-config
* Fix all the Checkstyle violations
2024-01-03 16:33:47 -05:00
Artem Bilan
c7b8647258 Make spring-analytics-consumer as auto-config
* Fix all the Checkstyle violations
2024-01-03 15:20:46 -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
Artem Bilan
f6eafc9511 Simplify Checkstyle configuration
* Move `checkstyle-conventions.gradle` content to the `build.gradle` since it is short enough
* Remove `checkstyle-header.txt` and its handling in favor of Spring Javaformat out-of-the box logic
* Upgrade to Gradle `8.5`
* Remove suppression for `Javadoc*` checks since it is handled by Spring Javaformat
* Leave only `MissingJavadocMethodCheck` exclusion from `SpringChecks` since all others really make sense for our code quality
2024-01-03 13:31:58 -05:00
Artem Bilan
9470841f5f Latest reusable workflow for pr-build.yml 2024-01-03 13:03:26 -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
dependabot[bot]
b9a3e59074 Bump io.debezium:debezium-bom from 2.4.1.Final to 2.4.2.Final (#14)
Bumps [io.debezium:debezium-bom](https://github.com/debezium/debezium) from 2.4.1.Final to 2.4.2.Final.
- [Changelog](https://github.com/debezium/debezium/blob/v2.4.2.Final/CHANGELOG.md)
- [Commits](https://github.com/debezium/debezium/compare/v2.4.1.Final...v2.4.2.Final)

---
updated-dependencies:
- dependency-name: io.debezium:debezium-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-23 19:31:52 +00:00
Artem Bilan
92243ee633 Revert PAT for merge-dependabot-pr
Dependabot does not see GH secrets: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#responding-to-events
2023-12-23 14:29:55 -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
f743fb3f8a Use PAT for merge-dependabot-pr.yml
This would let GH to trigger SNAPSHOT workflow on push to the branch
2023-12-22 17:45:16 -05:00
dependabot[bot]
b789841649 Bump org.springframework.boot:spring-boot-dependencies (#13)
Bumps [org.springframework.boot:spring-boot-dependencies](https://github.com/spring-projects/spring-boot) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-dependencies
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-22 22:25:39 +00:00
dependabot[bot]
8af624529b Bump io.awspring.cloud:spring-cloud-aws-dependencies from 3.0.3 to 3.0.4 (#12)
Bumps [io.awspring.cloud:spring-cloud-aws-dependencies](https://github.com/awspring/spring-cloud-aws) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/awspring/spring-cloud-aws/releases)
- [Commits](https://github.com/awspring/spring-cloud-aws/compare/v3.0.3...v3.0.4)

---
updated-dependencies:
- dependency-name: io.awspring.cloud:spring-cloud-aws-dependencies
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-22 22:24:42 +00: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
dependabot[bot]
28a30faaef Bump the development-dependencies group with 1 update (#11)
Bumps the development-dependencies group with 1 update: [io.spring.ge.conventions](https://github.com/spring-io/gradle-enterprise-conventions).


Updates `io.spring.ge.conventions` from 0.0.13 to 0.0.14
- [Release notes](https://github.com/spring-io/gradle-enterprise-conventions/releases)
- [Commits](https://github.com/spring-io/gradle-enterprise-conventions/compare/v0.0.13...v0.0.14)

---
updated-dependencies:
- dependency-name: io.spring.ge.conventions
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-22 21:22:54 +00:00
Artem Bilan
2a734a0180 Add Dependabot Support 2023-12-22 16:18:50 -05:00
Artem Bilan
7b59d41bc8 Add merge-dependabot-pr.yml workflow
* Fix `mail-supplier` to use `angus-mail.version` project property
2023-12-22 16:18:20 -05:00
Artem Bilan
5a6e572efc More permissions for release workflow 2023-12-22 15:51:11 -05:00
Artem Bilan
655f49b956 Migrate GHAs for repo from Spring IO org 2023-12-20 17:07:05 -05:00
Artem Bilan
804f1491f9 No need to manage artifactory in project 2023-12-01 15:58:27 -05:00
Artem Bilan
436dbf2e5c Migrate to Gradle-specific release reusable flow 2023-11-30 18:06:58 -05:00
Artem Bilan
dceb61a73c Add more info into README 2023-11-27 11:23:51 -05:00
Artem Bilan
52e506ec76 Rework Kafka Publisher to use DSL Spec for bean
It is not recommended to use `IntegrationComponentSpec.getObject()` manually.

* Change `KafkaPublisherConfiguration` to use `KafkaProducerMessageHandlerSpec` for bean definition
* Fix `KafkaPublisherConfigurationTests` to add an `IntegrationAutoConfiguration` into the picture as well
2023-11-27 09:35:26 -05:00
Artem Bilan
fc71db446a Various fixes
* Remove `aws-sdk` BOM in favor of one from the SC-AWS
* Add `artifactoryPublish.skip = true` for root project
* Remove `provided` Gradle feature
2023-11-24 13:44:06 -05:00