Skip to content

Commit

Permalink
fix archetype jackson native image config
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Apr 25, 2024
1 parent 971158c commit 5761bff
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ jobs:
run: |
etc/scripts/test-archetypes.sh
etc/scripts/test-archetypes-executable.sh
- name: Update failing project
uses: actions/upload-artifact@v3.1.2
with:
if-no-files-found: 'ignore'
name: test-results
path: |
**/target/projects/myproject-24/**/*
packaging:
timeout-minutes: 60
strategy:
Expand Down
8 changes: 6 additions & 2 deletions archetypes/archetypes/src/main/archetype/common/docker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
<templates engine="mustache" transformations="mustache,native-image">
<directory>files</directory>
<includes>
<include>src/*/resources/META-INF/**/*.mustache</include>
<include>src/*/resources/META-INF/**/native-image.properties.mustache</include>
<include if="${flavor} == 'mp' &amp;&amp; ${media.json-lib} == 'jackson'">src/*/resources/META-INF/**/resource-config.json.mustache</include>
</includes>
</templates>
</output>
Expand All @@ -63,7 +64,10 @@
</templates>
<model>
<list key="native-image-initialize-at-build-time" if="${flavor} == 'mp'">
<value if="${media} contains 'jackson'">com.fasterxml.jackson.core</value>
<value if="${media.json-lib} == 'jackson'">com.fasterxml.jackson.core</value>
</list>
<list key="bundles" if="${flavor} == 'mp'">
<value if="${media.json-lib} == 'jackson'">{"name":"jakarta.xml.bind.Messages"}</value>
</list>
<list key="poms" if="!${multi-module}">
<value>ADD pom.xml .</value>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"bundles": [
{{#bundles}}
{{.}}
{{/bundles}}
]
}

0 comments on commit 5761bff

Please sign in to comment.