Skip to content

Add CI, fix the build and remove vendor references from the samples - #1

Merged
rgoers merged 5 commits into
mainfrom
fix/ci-and-gitignore
Nov 12, 2026
Merged

rgoers merged 5 commits into
mainfrom
fix/ci-and-gitignore

Conversation

@ppkarwasz

@ppkarwasz ppkarwasz commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

This adds CI and fixes the build, so that pull requests report the build-result and CodeQL checks that .asf.yaml requires. At the moment no workflows exist, so no PR can satisfy them.

Changes

  • CI
    • Add the build and CodeQL workflows and the Dependabot configuration, modelled on logging-flume-mongodb.
    • The samples are never released, so the build workflow has no deployment jobs and the reproducibility check is off.
    • The Dependabot PR-processing workflows are left out, because there is no src/changelog directory for them to update.
    • CodeQL uses the exact ubuntu-24.04 runner label, which has shorter queues than ubuntu-latest.
    • Add the Maven wrapper and .mvn/maven.config (Apache snapshots), which the reusable build workflow requires.
  • Repository
    • Remove the .flattened-pom.xml files that were committed by mistake.
    • Add .gitignore and .gitattributes.
  • Build
    • Remove the plugin configurations that logging-parent already provides: enforcer, compiler, jar and Spotless. They pinned old plugin versions and referenced undefined properties (compiler.version, manifestfile).
    • Import flume-third-party-bom instead of flume-third-party-dependencies. The old BOM is no longer published, and its stale versions failed the upper-bound dependency check.
    • Manage the versions of flume-avro-client, flume-mongodb-sink and flume-spring-boot, which the old BOM used to manage.
    • Build the Spring Boot samples against flume-spring-boot 2.1.0-SNAPSHOT (Add build and release infrastructure logging-flume-spring-boot#12).
    • Use the same MongoDB driver version as flume-mongodb-sink.
    • Fix the SCM URLs.
    • Remove stale properties, a bogus SCM section and an unusable OWASP dependency-check profile.
    • Reformat the license headers that the logging-parent Spotless configuration now checks.
  • Vendor references. The samples were extracted from an internal code base, and these leftovers are removed:
    • the com.nextiva.flume loggers become org.apache.flume;
    • the unused nextiva.swagger properties;
    • the @ComponentScan annotations. The configuration classes are loaded through AutoConfiguration.imports, and the scans covered either an empty package or flume-spring-boot a second time;
    • the rating* bean names;
    • bootstrap.yml, which only Spring Cloud reads.

Verification

./mvnw -U clean install passes locally for all modules, against the published flume-spring-boot snapshot. Both Spring Boot samples start and wire their source, channels and sinks.

🤖 Generated with Claude Code

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>
@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

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>
@ppkarwasz ppkarwasz changed the title Add CI and fix the build of the samples Add CI, fix the build and remove vendor references from the samples Nov 12, 2026
@rgoers
rgoers merged commit da26518 into main Nov 12, 2026
6 checks passed
@rgoers
rgoers deleted the fix/ci-and-gitignore branch November 12, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants