Skip to content

Commit 606b87f

Browse files
committed
Using LF as line separator, reformatted according to Helidon style
A few changes to align with Helidon dev guidelines. Small example fixes. Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
1 parent c1f4683 commit 606b87f

58 files changed

Lines changed: 4402 additions & 4353 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
# Microstream integration example
2-
This example uses Microstream to persist the greetings supplied
1+
# Microstream integration example
32

3+
This example uses Microstream to persist the greetings supplied
44

55
## Build and run
6+
67
```
78
mvn package
89
java -jar target/helidon-examples-integrations-microstream-greetings-mp.jar
910
```
1011

11-
##Endpoints
12+
## Endpoints
13+
1214
Get default greeting message:
1315
curl -X GET http://localhost:7001/greet
14-
16+
1517
Get greeting message for Joe:
1618
curl -X GET http://localhost:7001/greet/Joe
17-
19+
1820
Add a greeting:
1921
curl -X PUT -H "Content-Type: application/json" -d '{"greeting" : "Howdy"}' http://localhost:7001/greet/greeting
Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
1-
<!--
2-
3-
Copyright (c) 2021 Oracle and/or its affiliates.
4-
5-
Licensed under the Apache License, Version 2.0 (the "License");
6-
you may not use this file except in compliance with the License.
7-
You may obtain a copy of the License at
8-
9-
http://www.apache.org/licenses/LICENSE-2.0
10-
11-
Unless required by applicable law or agreed to in writing, software
12-
distributed under the License is distributed on an "AS IS" BASIS,
13-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
See the License for the specific language governing permissions and
15-
limitations under the License.
16-
17-
-->
18-
19-
<project xmlns="http://maven.apache.org/POM/4.0.0"
20-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22-
<modelVersion>4.0.0</modelVersion>
23-
<parent>
24-
<groupId>io.helidon.applications</groupId>
25-
<artifactId>helidon-mp</artifactId>
26-
<version>2.4.0-SNAPSHOT</version>
27-
<relativePath>../../../../applications/mp/pom.xml</relativePath>
28-
</parent>
29-
30-
<artifactId>helidon-examples-integrations-microstream-greetings-mp</artifactId>
31-
<name>Helidon Microstream Integration Example Greetings mp</name>
32-
33-
<dependencies>
34-
<dependency>
35-
<groupId>io.helidon.microprofile.bundles</groupId>
36-
<artifactId>helidon-microprofile</artifactId>
37-
</dependency>
38-
<dependency>
39-
<groupId>io.helidon.integrations.microstream</groupId>
40-
<artifactId>helidon-integrations-microstream-cdi</artifactId>
41-
</dependency>
42-
43-
<!-- Test dependencies -->
44-
<dependency>
45-
<groupId>org.junit.jupiter</groupId>
46-
<artifactId>junit-jupiter-api</artifactId>
47-
<scope>test</scope>
48-
</dependency>
49-
<dependency>
50-
<groupId>org.hamcrest</groupId>
51-
<artifactId>hamcrest-all</artifactId>
52-
<scope>test</scope>
53-
</dependency>
54-
<dependency>
55-
<groupId>io.helidon.microprofile.tests</groupId>
56-
<artifactId>helidon-microprofile-tests-junit5</artifactId>
57-
<scope>test</scope>
58-
</dependency>
59-
</dependencies>
60-
61-
<build>
62-
<plugins>
63-
<plugin>
64-
<groupId>org.apache.maven.plugins</groupId>
65-
<artifactId>maven-dependency-plugin</artifactId>
66-
<executions>
67-
<execution>
68-
<id>copy-libs</id>
69-
</execution>
70-
</executions>
71-
</plugin>
72-
<plugin>
73-
<groupId>org.jboss.jandex</groupId>
74-
<artifactId>jandex-maven-plugin</artifactId>
75-
<executions>
76-
<execution>
77-
<id>make-index</id>
78-
</execution>
79-
</executions>
80-
</plugin>
81-
</plugins>
82-
</build>
83-
1+
<!--
2+
3+
Copyright (c) 2021 Oracle and/or its affiliates.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
17+
-->
18+
19+
<project xmlns="http://maven.apache.org/POM/4.0.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22+
<modelVersion>4.0.0</modelVersion>
23+
<parent>
24+
<groupId>io.helidon.applications</groupId>
25+
<artifactId>helidon-mp</artifactId>
26+
<version>2.4.0-SNAPSHOT</version>
27+
<relativePath>../../../../applications/mp/pom.xml</relativePath>
28+
</parent>
29+
30+
<artifactId>helidon-examples-integrations-microstream-greetings-mp</artifactId>
31+
<name>Helidon Microstream Integration Example Greetings mp</name>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>io.helidon.microprofile.bundles</groupId>
36+
<artifactId>helidon-microprofile</artifactId>
37+
</dependency>
38+
<dependency>
39+
<groupId>io.helidon.integrations.microstream</groupId>
40+
<artifactId>helidon-integrations-microstream-cdi</artifactId>
41+
</dependency>
42+
43+
<!-- Test dependencies -->
44+
<dependency>
45+
<groupId>org.junit.jupiter</groupId>
46+
<artifactId>junit-jupiter-api</artifactId>
47+
<scope>test</scope>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.hamcrest</groupId>
51+
<artifactId>hamcrest-all</artifactId>
52+
<scope>test</scope>
53+
</dependency>
54+
<dependency>
55+
<groupId>io.helidon.microprofile.tests</groupId>
56+
<artifactId>helidon-microprofile-tests-junit5</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
</dependencies>
60+
61+
<build>
62+
<plugins>
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-dependency-plugin</artifactId>
66+
<executions>
67+
<execution>
68+
<id>copy-libs</id>
69+
</execution>
70+
</executions>
71+
</plugin>
72+
<plugin>
73+
<groupId>org.jboss.jandex</groupId>
74+
<artifactId>jandex-maven-plugin</artifactId>
75+
<executions>
76+
<execution>
77+
<id>make-index</id>
78+
</execution>
79+
</executions>
80+
</plugin>
81+
</plugins>
82+
</build>
83+
8484
</project>

0 commit comments

Comments
 (0)