Repository navigation
Export the non-internal packages in OSGi and JPMS - #532
Merged
Merged
Conversation
logging-parent only exports packages annotated with `@Export`, so no Flume package was exported and the modules could not be used on the module path or in OSGi containers. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
ppkarwasz
enabled auto-merge (squash)
November 9, 2026 21:07
ppkarwasz
added a commit
that referenced
this pull request
Nov 9, 2026
…529) * Register the components of the other modules through `ServiceLoader` Each module now registers its own `type` aliases, so `flume-core` no longer needs to know their class names. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> * Export the `org.apache.flume.spi` package The exported component packages reference it, so bnd rejects the build since #528 and #532 were both merged. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
logging-parent only exports packages annotated with
@Export. Since no Flume package had that annotation, every Flume JAR had an emptyexportslist inmodule-info.classand noExport-Packageheader, so the modules could not be used on the module path or in OSGi containers. For example, on the module pathEnvironmentVariableConfigFilterfails with:This PR:
package-info.javawith@Exportand@Version("2.0.0")to every non-internal package (41 packages in 17 modules).org.osgi.annotation.bundleandorg.osgi.annotation.versioninginflume-parentwithprovidedscope, and declares them in each module.The following packages are not exported:
org.apache.flume.conf.internalandorg.apache.flume.node.internal: internal by design.conf.internalis also used byflume-file-channelandflume-node, but it only contains theSuppressFBWarningsannotation, so there is no runtime reference.org.apache.flume.source.shaded.guava: vendored Guava code, used only byStressSource.org.apache.flume.channel.file.proto: generated Protobuf classes of the file channel's on-disk format.Classpath usage, which
bin/flume-ngrelies on, is unaffected.🤖 Generated with Claude Code