Skip to content

Commit baa1e18

Browse files
committed
Fix files indentation / convention
1 parent a7f1657 commit baa1e18

File tree

18 files changed

+30
-15
lines changed

18 files changed

+30
-15
lines changed

archetypes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Archetypes Development
22

33
Helidon provides a set of archetypes to bootstrap end user's application development journey. They are implemented here based on
4-
[Archetype V2 engine] (https://github.com/helidon-io/helidon-build-tools/wiki/Archetype-Engine-V2)
4+
[Archetype V2 engine](https://github.com/helidon-io/helidon-build-tools/wiki/Archetype-Engine-V2).
55

66
## Build
77

archetypes/archetypes/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Archetype
2+
3+
Document description
4+
5+
## Conventions
6+
7+
### Features
8+
9+
- Must have an HTTP endpoint to exercise the feature (no generic path like 'api' or 'endpoint')
10+
- Must have a unit test class
11+
- Must have README.md documentation
12+
- Must have javadoc following Helidon standard
13+
14+
### Architecture
15+
16+
- directories group (files/features/nodes)
17+
- files names is flexible but has to self explainatory
18+
- inputs and output must be splited
19+
- archetype flow has to go through all inputs and then the output
20+
- paths relative and absolute
21+
- snippet should be placed at the same location then the template (in terms of path)
22+
- files must start at line 1 and end with a new line

archetypes/archetypes/src/main/archetype/defaults.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
<variables>
2424
<text path="basedir">.</text>
2525

26+
<boolean path="requires-helidon-microprofile-metrics">false</boolean>
27+
2628
<!-- modules variables -->
2729
<boolean path="requires-java-logging">false</boolean>
2830
<boolean path="requires-jakarta-annotation">false</boolean>
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
package {{package}};

archetypes/archetypes/src/main/archetype/nodes/mp/features/database/files/src/main/java/__pkg__/Pokemon.java.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
package {{package}};
32

43
{{#jackson}}import com.fasterxml.jackson.annotation.JsonIgnore;{{/jackson}}

archetypes/archetypes/src/main/archetype/nodes/mp/features/database/files/src/main/java/__pkg__/PokemonResource.java.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
package {{package}};
32

43
import jakarta.persistence.EntityManager;

archetypes/archetypes/src/main/archetype/nodes/mp/features/database/files/src/main/java/__pkg__/PokemonType.java.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
package {{package}};
32

43
import jakarta.persistence.Access;

archetypes/archetypes/src/main/archetype/nodes/mp/features/database/files/src/main/java/__pkg__/PokemonTypeResource.java.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
package {{package}};
32

43
import java.util.List;

archetypes/archetypes/src/main/archetype/nodes/mp/features/fault-tolerance/output.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
<value key="groupId">io.helidon.microprofile</value>
3939
<value key="artifactId">helidon-microprofile-fault-tolerance</value>
4040
</map>
41+
<map if="!${metrics}">
42+
<value key="groupId">io.helidon.microprofile.metrics</value>
43+
<value key="artifactId">helidon-microprofile-metrics</value>
44+
</map>
4145
</list>
4246
<list key="maven-plugins">
4347
<value file="files/maven-plugins.xml"/>

archetypes/archetypes/src/main/archetype/nodes/mp/features/media/nodes/json/nodes/jackson/files/src/main/java/__pkg__/Message.java.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package {{package}};
33
public class Message {
44

55
private String message;
6-
76
private String greeting;
87

98
public Message() {

0 commit comments

Comments
 (0)