Update pom.xml with profiles
<name>json-b</name>
<description>json-b sample project</description>
-
+ <profiles>
+ <profile>
+ <id>yasson</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
<dependencies>
- <dependency>
- <groupId>javax.json.bind</groupId>
- <artifactId>javax.json.bind-api</artifactId>
- <version>${jsonb-api.version}</version>
- </dependency>
<!-- Dependencies for Yasson -->
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>yasson</artifactId>
- <version>1.0</version>
+ <version>${yasson.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
- <version>1.1.2</version>
+ <version>${javax.json.version}</version>
</dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>johnzon</id>
+ <dependencies>
<!-- Dependencies for Johnzon -->
- <!-- <dependency> -->
- <!-- <groupId>org.apache.geronimo.specs</groupId> -->
- <!-- <artifactId>geronimo-json_1.1_spec</artifactId> -->
- <!-- <version>${geronimo-json_1.1_spec.version}</version> -->
- <!-- </dependency> -->
- <!-- <dependency> -->
- <!-- <groupId>org.apache.johnzon</groupId> -->
- <!-- <artifactId>johnzon-jsonb</artifactId> -->
- <!-- <version>${johnzon.version}</version> -->
- <!-- </dependency> -->
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-json_1.1_spec</artifactId>
+ <version>${geronimo-json_1.1_spec.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.johnzon</groupId>
+ <artifactId>johnzon-jsonb</artifactId>
+ <version>${johnzon.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>javax.json.bind</groupId>
+ <artifactId>javax.json.bind-api</artifactId>
+ <version>${jsonb-api.version}</version>
+ </dependency>
<!-- utils -->
<dependency>
<groupId>org.apache.commons</groupId>
<junit.platform.version>1.0.0</junit.platform.version>
<junit.jupiter.version>5.0.0</junit.jupiter.version>
<maven-surefire-plugin.version>2.20</maven-surefire-plugin.version>
- <johnzon.version>1.1.3</johnzon.version>
<jsonb-api.version>1.0</jsonb-api.version>
+ <johnzon.version>1.1.3</johnzon.version>
<geronimo-json_1.1_spec.version>1.0</geronimo-json_1.1_spec.version>
+ <yasson.version>1.0</yasson.version>
+ <javax.json.version>1.1.2</javax.json.version>
<commons-collections4.version>4.1</commons-collections4.version>
</properties>
