Skip to content

Move native-image metadata from src/main/resources/native-image/ to src/main/resources/META-INF/native-image/#12786

Merged
chrisvest merged 1 commit into
netty:mainfrom
gradinac:gradinac/move-ni-metadata-to-meta-inf
Sep 9, 2022
Merged

Move native-image metadata from src/main/resources/native-image/ to src/main/resources/META-INF/native-image/#12786
chrisvest merged 1 commit into
netty:mainfrom
gradinac:gradinac/move-ni-metadata-to-meta-inf

Conversation

@gradinac

@gradinac gradinac commented Sep 9, 2022

Copy link
Copy Markdown
Contributor

Motivation:
#12738 introduced automatic metadata generation for handlers. However, @violetagg rightly noticed that this metadata was not under META-INF. This means it wouldn't automatically be picked up by the native-image builder. This slipped through testing as I was manually merging the metadata before sending it over for tests with an existing Netty version.

Modification:
Move all generated reflect-config.json files from src/main/resources/native-image/... to src/main/resources/META-INF/native-image/

Result:

Native-image will properly pick up the generated handler metadata

@gradinac gradinac changed the title Move native-image metadata from native-image to META-INF/native-image Move native-image metadata from src/main/resources/native-image/ to src/main/resources/META-INF/native-image/ Sep 9, 2022
@chrisvest chrisvest merged commit e1edc77 into netty:main Sep 9, 2022
@chrisvest

Copy link
Copy Markdown
Member

Thanks

@gradinac

Copy link
Copy Markdown
Contributor Author

Thank you for reviewing and merging this PR! :)

violetagg added a commit to violetagg/socks-proxy that referenced this pull request Sep 11, 2022
Motivation:
- Buffer API package was changed from `io.netty5.buffer.api` to `io.netty5.buffer`
netty/netty#12792
- Small enhancement was introduced to `ChannelHandlerMetadataUtil`
netty/netty#12786

Modification:
- Adapt to the changed package for Buffer API
- Adapt to the change in `ChannelHandlerMetadataUtil`

Result:
Project build is green again
violetagg added a commit to violetagg/codec-haproxy that referenced this pull request Sep 11, 2022
Motivation:
- Buffer API package was changed from `io.netty5.buffer.api` to `io.netty5.buffer`
netty/netty#12792
- Small enhancement was introduced to `ChannelHandlerMetadataUtil`
netty/netty#12786

Modification:
- Adapt to the changed package for Buffer API
- Adapt to the change in `ChannelHandlerMetadataUtil`

Result:
Project build is green again
violetagg added a commit to netty-contrib/codec-haproxy that referenced this pull request Sep 12, 2022
Motivation:
- Buffer API package was changed from `io.netty5.buffer.api` to `io.netty5.buffer`
netty/netty#12792
- Small enhancement was introduced to `ChannelHandlerMetadataUtil`
netty/netty#12786

Modification:
- Adapt to the changed package for Buffer API
- Adapt to the change in `ChannelHandlerMetadataUtil`

Result:
Project build is green again
violetagg added a commit to netty-contrib/socks-proxy that referenced this pull request Sep 12, 2022
Motivation:
- Buffer API package was changed from `io.netty5.buffer.api` to `io.netty5.buffer`
netty/netty#12792
- Small enhancement was introduced to `ChannelHandlerMetadataUtil`
netty/netty#12786

Modification:
- Adapt to the changed package for Buffer API
- Adapt to the change in `ChannelHandlerMetadataUtil`

Result:
Project build is green again
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.

2 participants