Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.x: Archetype - Add opens WEB to module info for multipart #8506

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module {{package}} {
exports {{package}};

{{#module-opens}}
opens {{package}};
opens {{.}};
{{/module-opens}}
{{#module-opens-package}}
opens {{package}};
{{/module-opens-package}}
}
5 changes: 4 additions & 1 deletion archetypes/archetypes/src/main/archetype/common/media.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

Copyright (c) 2022, 2023 Oracle and/or its affiliates.
Copyright (c) 2022, 2024 Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -172,6 +172,9 @@
<value>jakarta.json</value>
<value>jersey.media.multipart</value>
</list>
<list key="module-opens" if="${flavor} == 'se'">
<value>WEB</value>
</list>
<list key="Main-helidon-imports" if="${flavor} == 'se'">
<value>io.helidon.http.Status</value>
<value>io.helidon.http.HeaderNames</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Hello World!
<value>io.helidon.microprofile.config</value>
<value>io.helidon.microprofile.server</value>
</list>
<value key="module-opens">true</value>
<value key="module-opens-package">true</value>
</model>
</output>
</archetype-script>