Skip to content

Commit 7bfc50e

Browse files
author
juan
committed
BAEL-1121
Sample code, tests and dependencies for Spring5-JsonB article.
1 parent 09d10ac commit 7bfc50e

6 files changed

Lines changed: 501 additions & 184 deletions

File tree

‎spring-5/pom.xml‎

Lines changed: 192 additions & 184 deletions
Original file line numberDiff line numberDiff line change
@@ -1,188 +1,196 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
6-
<groupId>com.baeldung</groupId>
7-
<artifactId>spring-5</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
9-
<packaging>jar</packaging>
10-
11-
<name>spring-5</name>
12-
<description>spring 5 sample project about new features</description>
13-
14-
<parent>
15-
<groupId>org.springframework.boot</groupId>
16-
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>2.0.0.M1</version>
18-
<relativePath /> <!-- lookup parent from repository -->
19-
</parent>
20-
21-
<dependencies>
22-
<dependency>
23-
<groupId>org.springframework.boot</groupId>
24-
<artifactId>spring-boot-starter-data-jpa</artifactId>
25-
</dependency>
26-
<dependency>
27-
<groupId>org.springframework.boot</groupId>
28-
<artifactId>spring-boot-starter-security</artifactId>
29-
</dependency>
30-
<dependency>
31-
<groupId>org.springframework.boot</groupId>
32-
<artifactId>spring-boot-starter-validation</artifactId>
33-
</dependency>
34-
<dependency>
35-
<groupId>org.springframework.boot</groupId>
36-
<artifactId>spring-boot-starter-web</artifactId>
37-
</dependency>
38-
<dependency>
39-
<groupId>org.springframework.boot</groupId>
40-
<artifactId>spring-boot-starter-webflux</artifactId>
41-
</dependency>
42-
<dependency>
43-
<groupId>org.projectreactor</groupId>
44-
<artifactId>reactor-spring</artifactId>
45-
<version>1.0.1.RELEASE</version>
46-
</dependency>
47-
48-
<!-- utils -->
49-
<dependency>
50-
<groupId>org.apache.commons</groupId>
51-
<artifactId>commons-lang3</artifactId>
52-
</dependency>
53-
54-
<!-- runtime and test scoped -->
55-
56-
<dependency>
57-
<groupId>org.springframework.boot</groupId>
58-
<artifactId>spring-boot-devtools</artifactId>
59-
<scope>runtime</scope>
60-
</dependency>
61-
<dependency>
62-
<groupId>com.h2database</groupId>
63-
<artifactId>h2</artifactId>
64-
<scope>runtime</scope>
65-
</dependency>
66-
67-
<dependency>
68-
<groupId>org.springframework</groupId>
69-
<artifactId>spring-test</artifactId>
70-
</dependency>
71-
<dependency>
72-
<groupId>org.springframework.boot</groupId>
73-
<artifactId>spring-boot-starter-test</artifactId>
74-
<scope>test</scope>
75-
</dependency>
76-
77-
<dependency>
78-
<groupId>org.junit.jupiter</groupId>
79-
<artifactId>junit-jupiter-api</artifactId>
80-
<version>${junit.jupiter.version}</version>
81-
</dependency>
82-
<dependency>
83-
<groupId>org.junit.jupiter</groupId>
84-
<artifactId>junit-jupiter-engine</artifactId>
85-
<version>${junit.jupiter.version}</version>
86-
<scope>test</scope>
87-
</dependency>
88-
<dependency>
89-
<groupId>org.junit.platform</groupId>
90-
<artifactId>junit-platform-surefire-provider</artifactId>
91-
<version>${junit.platform.version}</version>
92-
<scope>test</scope>
93-
</dependency>
94-
<dependency>
95-
<groupId>org.junit.platform</groupId>
96-
<artifactId>junit-platform-runner</artifactId>
97-
<version>${junit.platform.version}</version>
98-
<scope>test</scope>
99-
</dependency>
100-
101-
</dependencies>
102-
103-
<build>
104-
<plugins>
105-
<plugin>
106-
<groupId>org.springframework.boot</groupId>
107-
<artifactId>spring-boot-maven-plugin</artifactId>
108-
<configuration>
109-
<mainClass>com.baeldung.Spring5Application</mainClass>
110-
<layout>JAR</layout>
111-
</configuration>
112-
</plugin>
113-
114-
<plugin>
115-
<groupId>org.apache.maven.plugins</groupId>
116-
<artifactId>maven-surefire-plugin</artifactId>
117-
<version>${maven-surefire-plugin.version}</version>
118-
<configuration>
119-
<forkCount>3</forkCount>
120-
<reuseForks>true</reuseForks>
121-
<excludes>
122-
<exclude>**/*IntegrationTest.java</exclude>
123-
<exclude>**/*LiveTest.java</exclude>
124-
</excludes>
125-
</configuration>
126-
</plugin>
127-
128-
<plugin>
129-
<groupId>org.apache.maven.plugins</groupId>
130-
<artifactId>maven-surefire-plugin</artifactId>
131-
<version>${maven-surefire-plugin.version}</version>
132-
<configuration>
133-
<parallel>methods</parallel>
134-
<useUnlimitedThreads>true</useUnlimitedThreads>
135-
</configuration>
136-
</plugin>
137-
138-
</plugins>
139-
</build>
140-
141-
<repositories>
142-
<repository>
143-
<id>spring-snapshots</id>
144-
<name>Spring Snapshots</name>
145-
<url>https://repo.spring.io/snapshot</url>
146-
<snapshots>
147-
<enabled>true</enabled>
148-
</snapshots>
149-
</repository>
150-
<repository>
151-
<id>spring-milestones</id>
152-
<name>Spring Milestones</name>
153-
<url>https://repo.spring.io/milestone</url>
154-
<snapshots>
155-
<enabled>false</enabled>
156-
</snapshots>
157-
</repository>
158-
</repositories>
159-
<pluginRepositories>
160-
<pluginRepository>
161-
<id>spring-snapshots</id>
162-
<name>Spring Snapshots</name>
163-
<url>https://repo.spring.io/snapshot</url>
164-
<snapshots>
165-
<enabled>true</enabled>
166-
</snapshots>
167-
</pluginRepository>
168-
<pluginRepository>
169-
<id>spring-milestones</id>
170-
<name>Spring Milestones</name>
171-
<url>https://repo.spring.io/milestone</url>
172-
<snapshots>
173-
<enabled>false</enabled>
174-
</snapshots>
175-
</pluginRepository>
176-
</pluginRepositories>
177-
178-
<properties>
179-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
180-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
181-
<java.version>1.8</java.version>
182-
<junit.platform.version>1.0.0-M4</junit.platform.version>
183-
<junit.jupiter.version>5.0.0-M4</junit.jupiter.version>
184-
<maven-surefire-plugin.version>2.20</maven-surefire-plugin.version>
185-
<spring.version>5.0.0.RC2</spring.version>
186-
</properties>
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.baeldung</groupId>
7+
<artifactId>spring-5</artifactId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
<packaging>jar</packaging>
10+
11+
<name>spring-5</name>
12+
<description>spring 5 sample project about new features</description>
13+
14+
<parent>
15+
<groupId>org.springframework.boot</groupId>
16+
<artifactId>spring-boot-starter-parent</artifactId>
17+
<version>2.0.0.M1</version>
18+
<relativePath /> <!-- lookup parent from repository -->
19+
</parent>
20+
21+
<dependencies>
22+
<dependency>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-starter-data-jpa</artifactId>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.springframework.boot</groupId>
28+
<artifactId>spring-boot-starter-security</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.springframework.boot</groupId>
32+
<artifactId>spring-boot-starter-validation</artifactId>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.springframework.boot</groupId>
36+
<artifactId>spring-boot-starter-web</artifactId>
37+
</dependency>
38+
<dependency>
39+
<groupId>org.springframework.boot</groupId>
40+
<artifactId>spring-boot-starter-webflux</artifactId>
41+
</dependency>
42+
<dependency>
43+
<groupId>org.projectreactor</groupId>
44+
<artifactId>reactor-spring</artifactId>
45+
<version>${reactor-spring.version}</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>javax.json.bind</groupId>
49+
<artifactId>javax.json.bind-api</artifactId>
50+
<version>${jsonb-api.version}</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.apache.geronimo.specs</groupId>
54+
<artifactId>geronimo-json_1.1_spec</artifactId>
55+
<version>${geronimo-json_1.1_spec.version}</version>
56+
</dependency>
57+
<dependency>
58+
<groupId>org.apache.johnzon</groupId>
59+
<artifactId>johnzon-jsonb</artifactId>
60+
<version>${johnzon.version}</version>
61+
</dependency>
62+
<!-- utils -->
63+
<dependency>
64+
<groupId>org.apache.commons</groupId>
65+
<artifactId>commons-lang3</artifactId>
66+
</dependency>
67+
68+
<!-- runtime and test scoped -->
69+
70+
<dependency>
71+
<groupId>org.springframework.boot</groupId>
72+
<artifactId>spring-boot-devtools</artifactId>
73+
<scope>runtime</scope>
74+
</dependency>
75+
<dependency>
76+
<groupId>com.h2database</groupId>
77+
<artifactId>h2</artifactId>
78+
<scope>runtime</scope>
79+
</dependency>
80+
81+
<dependency>
82+
<groupId>org.springframework</groupId>
83+
<artifactId>spring-test</artifactId>
84+
</dependency>
85+
<dependency>
86+
<groupId>org.springframework.boot</groupId>
87+
<artifactId>spring-boot-starter-test</artifactId>
88+
<scope>test</scope>
89+
</dependency>
90+
91+
<dependency>
92+
<groupId>org.junit.jupiter</groupId>
93+
<artifactId>junit-jupiter-api</artifactId>
94+
<version>${junit.jupiter.version}</version>
95+
</dependency>
96+
<dependency>
97+
<groupId>org.junit.jupiter</groupId>
98+
<artifactId>junit-jupiter-engine</artifactId>
99+
<version>${junit.jupiter.version}</version>
100+
<scope>test</scope>
101+
</dependency>
102+
<dependency>
103+
<groupId>org.junit.platform</groupId>
104+
<artifactId>junit-platform-surefire-provider</artifactId>
105+
<version>${junit.platform.version}</version>
106+
<scope>test</scope>
107+
</dependency>
108+
<dependency>
109+
<groupId>org.junit.platform</groupId>
110+
<artifactId>junit-platform-runner</artifactId>
111+
<version>${junit.platform.version}</version>
112+
<scope>test</scope>
113+
</dependency>
114+
115+
</dependencies>
116+
117+
<build>
118+
<plugins>
119+
<plugin>
120+
<groupId>org.springframework.boot</groupId>
121+
<artifactId>spring-boot-maven-plugin</artifactId>
122+
<configuration>
123+
<mainClass>com.baeldung.Spring5Application</mainClass>
124+
<layout>JAR</layout>
125+
</configuration>
126+
</plugin>
127+
128+
<plugin>
129+
<groupId>org.apache.maven.plugins</groupId>
130+
<artifactId>maven-surefire-plugin</artifactId>
131+
<configuration>
132+
<forkCount>3</forkCount>
133+
<reuseForks>true</reuseForks>
134+
<parallel>methods</parallel>
135+
<useUnlimitedThreads>true</useUnlimitedThreads>
136+
<excludes>
137+
<exclude>**/*IntegrationTest.java</exclude>
138+
<exclude>**/*LiveTest.java</exclude>
139+
</excludes>
140+
</configuration>
141+
</plugin>
142+
</plugins>
143+
</build>
144+
145+
<repositories>
146+
<repository>
147+
<id>spring-snapshots</id>
148+
<name>Spring Snapshots</name>
149+
<url>https://repo.spring.io/snapshot</url>
150+
<snapshots>
151+
<enabled>true</enabled>
152+
</snapshots>
153+
</repository>
154+
<repository>
155+
<id>spring-milestones</id>
156+
<name>Spring Milestones</name>
157+
<url>https://repo.spring.io/milestone</url>
158+
<snapshots>
159+
<enabled>false</enabled>
160+
</snapshots>
161+
</repository>
162+
</repositories>
163+
<pluginRepositories>
164+
<pluginRepository>
165+
<id>spring-snapshots</id>
166+
<name>Spring Snapshots</name>
167+
<url>https://repo.spring.io/snapshot</url>
168+
<snapshots>
169+
<enabled>true</enabled>
170+
</snapshots>
171+
</pluginRepository>
172+
<pluginRepository>
173+
<id>spring-milestones</id>
174+
<name>Spring Milestones</name>
175+
<url>https://repo.spring.io/milestone</url>
176+
<snapshots>
177+
<enabled>false</enabled>
178+
</snapshots>
179+
</pluginRepository>
180+
</pluginRepositories>
181+
182+
<properties>
183+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
184+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
185+
<java.version>1.8</java.version>
186+
<junit.platform.version>1.0.0-M4</junit.platform.version>
187+
<junit.jupiter.version>5.0.0-M4</junit.jupiter.version>
188+
<maven-surefire-plugin.version>2.20</maven-surefire-plugin.version>
189+
<spring.version>5.0.0.RC2</spring.version>
190+
<reactor-spring.version>1.0.1.RELEASE</reactor-spring.version>
191+
<johnzon.version>1.1.3</johnzon.version>
192+
<jsonb-api.version>1.0</jsonb-api.version>
193+
<geronimo-json_1.1_spec.version>1.0</geronimo-json_1.1_spec.version>
194+
</properties>
187195

188196
</project>

0 commit comments

Comments
 (0)