Skip to content

Commit

Permalink
fix application.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <[email protected]>
  • Loading branch information
tvallin committed Nov 2, 2023
1 parent ce245bf commit ef06c49
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions archetypes/helidon/src/main/archetype/common/security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -342,5 +342,8 @@ security:
</output>
</boolean>
</inputs>
<variables>
<boolean path="application-yaml" if="${security}">true</boolean>
</variables>
</step>
</archetype-script>
10 changes: 9 additions & 1 deletion archetypes/helidon/src/main/archetype/mp/custom/custom-mp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
<archetype-script xmlns="https://helidon.io/archetype/2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://helidon.io/archetype/2.0 https://helidon.io/xsd/archetype-2.0.xsd">

<variables>
<boolean path="application-yaml">false</boolean>
</variables>
<exec src="/mp/common/common-mp.xml"/>
<exec src="/common/media.xml"/>
<source src="/common/media-sources.xml"/>
Expand All @@ -32,6 +34,12 @@
<source src="observability.xml"/>
<exec src="database-outputs.xml" if="${db}"/>
<output>
<templates engine="mustache" transformations="mustache" if="${application-yaml}">
<directory>files</directory>
<includes>
<include>src/*/resources/**/application.yaml.mustache</include>
</includes>
</templates>
<model>
<value key="helidon-test">true</value>
<value key="mainClass" if="${jpms}">${package}.Main</value>
Expand Down
6 changes: 6 additions & 0 deletions archetypes/helidon/src/main/archetype/mp/oci/oci-mp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ This will mount `~/.oci` as a volume in the running docker container.
<exec src="/common/common.xml"/>
<exec src="/common/packaging.xml"/>
<output>
<templates engine="mustache" transformations="mustache,module-dir">
<directory>../custom/files</directory>
<includes>
<include>src/*/resources/**/application.yaml.mustache</include>
</includes>
</templates>
<templates engine="mustache" transformations="mustache,packaged">
<directory>files</directory>
<includes>
Expand Down

0 comments on commit ef06c49

Please sign in to comment.