Skip to content

Commit a60d922

Browse files
author
juan
committed
Update pom.xml with profiles
1 parent 179838b commit a60d922

1 file changed

Lines changed: 40 additions & 24 deletions

File tree

‎jsonb/pom.xml‎

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,49 @@
1010

1111
<name>json-b</name>
1212
<description>json-b sample project</description>
13-
13+
<profiles>
14+
<profile>
15+
<id>yasson</id>
16+
<activation>
17+
<activeByDefault>true</activeByDefault>
18+
</activation>
19+
<dependencies>
20+
<!-- Dependencies for Yasson -->
21+
<dependency>
22+
<groupId>org.eclipse</groupId>
23+
<artifactId>yasson</artifactId>
24+
<version>${yasson.version}</version>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.glassfish</groupId>
28+
<artifactId>javax.json</artifactId>
29+
<version>${javax.json.version}</version>
30+
</dependency>
31+
</dependencies>
32+
</profile>
33+
<profile>
34+
<id>johnzon</id>
35+
<dependencies>
36+
<!-- Dependencies for Johnzon -->
37+
<dependency>
38+
<groupId>org.apache.geronimo.specs</groupId>
39+
<artifactId>geronimo-json_1.1_spec</artifactId>
40+
<version>${geronimo-json_1.1_spec.version}</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>org.apache.johnzon</groupId>
44+
<artifactId>johnzon-jsonb</artifactId>
45+
<version>${johnzon.version}</version>
46+
</dependency>
47+
</dependencies>
48+
</profile>
49+
</profiles>
1450
<dependencies>
1551
<dependency>
1652
<groupId>javax.json.bind</groupId>
1753
<artifactId>javax.json.bind-api</artifactId>
1854
<version>${jsonb-api.version}</version>
1955
</dependency>
20-
<!-- Dependencies for Yasson -->
21-
<dependency>
22-
<groupId>org.eclipse</groupId>
23-
<artifactId>yasson</artifactId>
24-
<version>1.0</version>
25-
</dependency>
26-
<dependency>
27-
<groupId>org.glassfish</groupId>
28-
<artifactId>javax.json</artifactId>
29-
<version>1.1.2</version>
30-
</dependency>
31-
<!-- Dependencies for Johnzon -->
32-
<!-- <dependency> -->
33-
<!-- <groupId>org.apache.geronimo.specs</groupId> -->
34-
<!-- <artifactId>geronimo-json_1.1_spec</artifactId> -->
35-
<!-- <version>${geronimo-json_1.1_spec.version}</version> -->
36-
<!-- </dependency> -->
37-
<!-- <dependency> -->
38-
<!-- <groupId>org.apache.johnzon</groupId> -->
39-
<!-- <artifactId>johnzon-jsonb</artifactId> -->
40-
<!-- <version>${johnzon.version}</version> -->
41-
<!-- </dependency> -->
4256
<!-- utils -->
4357
<dependency>
4458
<groupId>org.apache.commons</groupId>
@@ -81,9 +95,11 @@
8195
<junit.platform.version>1.0.0</junit.platform.version>
8296
<junit.jupiter.version>5.0.0</junit.jupiter.version>
8397
<maven-surefire-plugin.version>2.20</maven-surefire-plugin.version>
84-
<johnzon.version>1.1.3</johnzon.version>
8598
<jsonb-api.version>1.0</jsonb-api.version>
99+
<johnzon.version>1.1.3</johnzon.version>
86100
<geronimo-json_1.1_spec.version>1.0</geronimo-json_1.1_spec.version>
101+
<yasson.version>1.0</yasson.version>
102+
<javax.json.version>1.1.2</javax.json.version>
87103
<commons-collections4.version>4.1</commons-collections4.version>
88104
</properties>
89105

0 commit comments

Comments
 (0)