Repository navigation
Add CI, fix the build and remove vendor references from the samples - #1
Merged
Merged
Conversation
Remove the `.flattened-pom.xml` files that were committed by mistake and add the `.gitignore` and `.gitattributes` used by the other Flume repositories. Add the `build` and `CodeQL` workflows, so that pull requests report the `build-result` and `CodeQL` checks required by `.asf.yaml`. Since the samples are never released, the build workflow has no deployment jobs and the reproducibility check is disabled. Add the Maven Wrapper and `.mvn/maven.config` used by the reusable build workflow. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
- Remove the pinned `maven-enforcer-plugin`, `maven-compiler-plugin`, `maven-jar-plugin` and `spotless-maven-plugin` configurations, which are already provided by `logging-parent`. They referenced undefined properties (`compiler.version`, `manifestfile`) and old plugin versions. - Import `flume-third-party-bom` instead of the obsolete, no longer published `flume-third-party-dependencies`, whose stale versions broke the upper-bound dependency check. - Manage the versions of `flume-avro-client`, `flume-mongodb-sink` and `flume-spring-boot`, which were managed by the obsolete BOM, and use managed versions in the client. - Use the same MongoDB driver version as `flume-mongodb-sink`. - Fix the SCM URLs and remove stale properties, a bogus SCM section and an unusable OWASP dependency-check profile. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
`flume-spring-boot` 2.0.0 was already released, so the version built against Flume 2.0.0 is 2.1.0-SNAPSHOT. Also reformat the license headers of the Spring Boot MongoDB sample, which are now checked by the Spotless configuration of `logging-parent`. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Jobs requesting the `*-latest` aliases often wait in long queues. Same change as apache/logging-parent#530 for the reusable workflows. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
The samples were extracted from an internal code base and still referenced its packages, configuration and business domain: - Replace the `com.nextiva.flume` loggers with `org.apache.flume`. - Remove the `nextiva.swagger` properties, which nothing reads. - Remove the `@ComponentScan` annotations: the configuration classes are loaded through `AutoConfiguration.imports`, and the scanned packages were either empty (`com.nextiva.flume`) or caused `flume-spring-boot` and the sample to be scanned twice (`org.apache.flume`). - Rename the `rating*` beans of the Spring Boot MongoDB sample. - Remove `bootstrap.yml`, which is only read by Spring Cloud. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
rgoers
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds CI and fixes the build, so that pull requests report the
build-resultandCodeQLchecks that.asf.yamlrequires. At the moment no workflows exist, so no PR can satisfy them.Changes
buildandCodeQLworkflows and the Dependabot configuration, modelled onlogging-flume-mongodb.src/changelogdirectory for them to update.ubuntu-24.04runner label, which has shorter queues thanubuntu-latest..mvn/maven.config(Apache snapshots), which the reusable build workflow requires..flattened-pom.xmlfiles that were committed by mistake..gitignoreand.gitattributes.logging-parentalready provides: enforcer, compiler, jar and Spotless. They pinned old plugin versions and referenced undefined properties (compiler.version,manifestfile).flume-third-party-bominstead offlume-third-party-dependencies. The old BOM is no longer published, and its stale versions failed the upper-bound dependency check.flume-avro-client,flume-mongodb-sinkandflume-spring-boot, which the old BOM used to manage.flume-spring-boot2.1.0-SNAPSHOT (Add build and release infrastructure logging-flume-spring-boot#12).flume-mongodb-sink.logging-parentSpotless configuration now checks.com.nextiva.flumeloggers becomeorg.apache.flume;nextiva.swaggerproperties;@ComponentScanannotations. The configuration classes are loaded throughAutoConfiguration.imports, and the scans covered either an empty package orflume-spring-boota second time;rating*bean names;bootstrap.yml, which only Spring Cloud reads.Verification
./mvnw -U clean installpasses locally for all modules, against the publishedflume-spring-bootsnapshot. Both Spring Boot samples start and wire their source, channels and sinks.🤖 Generated with Claude Code