Skip to content

Add overrideStaticBlockLibraryLoading configuration option#693

Merged
ktoso merged 1 commit intoswiftlang:mainfrom
ktoso:wip-customize-loading
Apr 10, 2026
Merged

Add overrideStaticBlockLibraryLoading configuration option#693
ktoso merged 1 commit intoswiftlang:mainfrom
ktoso:wip-customize-loading

Conversation

@ktoso
Copy link
Copy Markdown
Collaborator

@ktoso ktoso commented Apr 10, 2026

Replace the boolean disableAutomaticLibraryLoading with a more flexible overrideStaticBlockLibraryLoading: [String]?.

Developers can customize if they want any automatic loading or none at all etc. You can pass [] to disable it, or pass your custom loading logic -- if you have additional dependencies swift-java doesn't know about

Replace the boolean `disableAutomaticLibraryLoading` with a more
flexible `overrideStaticBlockLibraryLoading: [String]?` that allows
callers to specify exact Java statements for the static library
loading block. When nil, the default loading calls are emitted.
When empty, no loading code is emitted. When populated, the provided
statements are emitted verbatim.
@ktoso ktoso merged commit b9cd1ae into swiftlang:main Apr 10, 2026
64 checks passed
@ktoso ktoso deleted the wip-customize-loading branch April 10, 2026 05:50
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.

1 participant