Skip to content

Commit

Permalink
Fixes #1024 - Bad build time subsitution for bare archetypes pom
Browse files Browse the repository at this point in the history
Fixes #1025 - archetype-packaging plugin needs to be declared as an extension
Reverting dependencies on helidon-metrics2 back helidon-metrics for all SE examples
Removing helidon-metrics2 from the BOM pom to prevent end-user from using it
Update examples/grpc/metrics README to fix test step.
  • Loading branch information
romain-grecourt committed Sep 13, 2019
1 parent b5a2836 commit be5bbd9
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 27 deletions.
8 changes: 8 additions & 0 deletions archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
</modules>

<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>${version.plugin.archetype-packaging}</version>
</extension>
</extensions>
<resources>
<resource>
<directory>src/main/resources</directory>
Expand All @@ -61,6 +68,7 @@
<execution>
<id>default-resources</id>
<configuration>
<useDefaultDelimiters>false</useDefaultDelimiters>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#if( $metricsSupport.matches("y|yes|true") )
<dependency>
<groupId>io.helidon.metrics</groupId>
<artifactId>helidon-metrics2</artifactId>
<artifactId>helidon-metrics</artifactId>
</dependency>
#end
#if( $unitTest.matches("y|yes|true") )
Expand Down
5 changes: 0 additions & 5 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,6 @@
<artifactId>helidon-metrics</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.metrics</groupId>
<artifactId>helidon-metrics2</artifactId>
<version>${helidon.version}</version>
</dependency>
<!-- health checks -->
<dependency>
<groupId>io.helidon.health</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/employee-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</dependency>
<dependency>
<groupId>io.helidon.metrics</groupId>
<artifactId>helidon-metrics2</artifactId>
<artifactId>helidon-metrics</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.media.jsonb</groupId>
Expand Down
5 changes: 2 additions & 3 deletions examples/grpc/metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ mvn package
java -jar target/helidon-examples-grpc-metrics.jar
```

Exercise the example:
Try the metrics:
```bash
java -cp target/helidon-examples-grpc-metrics.jar \
io.helidon.grpc.examples.metrics.SecureStringClient
curl http://localhost:8080/metrics
```
2 changes: 1 addition & 1 deletion examples/grpc/metrics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</dependency>
<dependency>
<groupId>io.helidon.metrics</groupId>
<artifactId>helidon-metrics2</artifactId>
<artifactId>helidon-metrics</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.grpc</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</dependency>
<dependency>
<groupId>io.helidon.metrics</groupId>
<artifactId>helidon-metrics2</artifactId>
<artifactId>helidon-metrics</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.openapi</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstarts/helidon-quickstart-se/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</dependency>
<dependency>
<groupId>io.helidon.metrics</groupId>
<artifactId>helidon-metrics2</artifactId>
<artifactId>helidon-metrics</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/todo-app/frontend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
</dependency>
<dependency>
<groupId>io.helidon.metrics</groupId>
<artifactId>helidon-metrics2</artifactId>
<artifactId>helidon-metrics</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

import org.eclipse.microprofile.metrics.Counter;
import org.eclipse.microprofile.metrics.Metadata;
import org.eclipse.microprofile.metrics.MetadataBuilder;
import org.eclipse.microprofile.metrics.MetricRegistry;
import org.eclipse.microprofile.metrics.MetricType;
import org.eclipse.microprofile.metrics.MetricUnits;
Expand Down Expand Up @@ -95,12 +94,7 @@ public TodosHandler(BackendServiceClient bsc) {
}

private Metadata counterMetadata(String name, String description) {
return new MetadataBuilder()
.withName(name)
.withDescription(description)
.withType(MetricType.COUNTER)
.withUnit(MetricUnits.NONE)
.build();
return new Metadata(name, name, description, MetricType.COUNTER, MetricUnits.NONE);
}

@Override
Expand Down
1 change: 1 addition & 0 deletions microprofile/metrics2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<dependency>
<groupId>io.helidon.metrics</groupId>
<artifactId>helidon-metrics2</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.microprofile.bundles</groupId>
Expand Down
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -576,11 +576,6 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>${version.plugin.archetype-packaging}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion tests/apps/bookstore/bookstore-se/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</dependency>
<dependency>
<groupId>io.helidon.metrics</groupId>
<artifactId>helidon-metrics2</artifactId>
<artifactId>helidon-metrics</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.media.jsonb</groupId>
Expand Down

0 comments on commit be5bbd9

Please sign in to comment.