Skip to content

Commit

Permalink
Refactor archetypes/helidon to comply with the workspace conventions (#…
Browse files Browse the repository at this point in the history
…8291)

- rename archetypes/helidon to archetypes/helidon-archetypes
- update artifactId from 'helidon' to 'helidon-archetypes'
- Update stager plugin configuration to preserve the old layout (I.e. stage as 'helidon-{version}.jar'
- Update legacy/pom.xml to reflect the change
  • Loading branch information
romain-grecourt authored Jan 25, 2024
1 parent 996ba16 commit b79f1fe
Show file tree
Hide file tree
Showing 157 changed files with 9 additions and 8 deletions.
File renamed without changes.
11 changes: 6 additions & 5 deletions archetypes/helidon/pom.xml → archetypes/archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<version>4.0.0-SNAPSHOT</version>
</parent>
<packaging>helidon-archetype</packaging>
<artifactId>helidon</artifactId>
<name>Helidon Archetype</name>
<artifactId>helidon-archetypes</artifactId>
<name>Helidon Archetypes</name>

<dependencies>
<dependency>
Expand Down Expand Up @@ -83,12 +83,13 @@
<archive target="cli-data/${project.version}/cli-data.zip">
<copy-artifacts>
<copy-artifact groupId="io.helidon.archetypes"
artifactId="helidon"
artifactId="helidon-archetypes"
version="${project.version}"
target="helidon-{version}.{type}"
type="jar"/>
</copy-artifacts>
<templates>
<template source="src/main/cli/metadata.properties.mustache"
<template source="src/main/cli/metadata.properties.hbs"
target="metadata.properties">
<variables>
<variable name="buildtoolsVersion"
Expand All @@ -101,7 +102,7 @@
</archive>
</archives>
<templates>
<template source="src/main/cli/versions.xml.mustache" target="cli-data/versions.xml">
<template source="src/main/cli/versions.xml.hbs" target="cli-data/versions.xml">
<variables>
<variable name="version" value="${project.version}"/>
</variables>
Expand Down
4 changes: 2 additions & 2 deletions archetypes/legacy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<dependencies>
<dependency>
<groupId>io.helidon.archetypes</groupId>
<artifactId>helidon</artifactId>
<artifactId>helidon-archetypes</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down Expand Up @@ -71,7 +71,7 @@
<!--suppress UnresolvedMavenProperty -->
<enum path="app-type">${app-type}</enum>
</presets>
<exec url="mvn://io.helidon.archetypes:helidon:${project.version}!/main.xml"/>
<exec url="mvn://io.helidon.archetypes:helidon-archetypes:${project.version}!/main.xml"/>
</entrypoint>
</configuration>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<packaging>pom</packaging>

<modules>
<module>helidon</module>
<module>archetypes</module>
<module>legacy</module>
</modules>

Expand Down

0 comments on commit b79f1fe

Please sign in to comment.