<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>io.microlam</groupId>
    <artifactId>microlam</artifactId>
    <version>0.5.1</version>
  </parent>

	<artifactId>microlam-json</artifactId>
	<packaging>jar</packaging>
  	<name>Microlam Json Utilities</name>
  	<description>Microlam Json Utilities</description>
    <url>https://microlam.io</url>

  <organization>
    <name>MicroLam.io</name>
    <url>https://microlam.io</url>
  </organization>

  <licenses>
    <license>
      <name>MIT License</name>
      <url>http://www.opensource.org/licenses/mit-license.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

	<developers>
	    <developer>
	      <name>Frank Afriat</name>
	      <email>frank.afriat@microlam.io</email>
	      <organization>MicroLam.io</organization>
	      <organizationUrl>https://microlam.io</organizationUrl>
	    </developer>
	 </developers>

	<scm>
	  <connection>scm:git:ssh://git@github.com/microlam-io/${project.artifactId}.git</connection>
	  <developerConnection>scm:git:ssh://git@github.com/microlam-io/${project.artifactId}.git</developerConnection>
	  <url>https://github.com/microlam-io/${project.artifactId}/tree/master</url>
    <tag>v0.5.1</tag>
  </scm>

	<distributionManagement>
	  <snapshotRepository>
	    <id>ossrh</id>
	    <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
	  </snapshotRepository>
	  <repository>
    	<id>ossrh</id>
    	<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  	  </repository>
	</distributionManagement>

  <properties>
    <jdk.version>8</jdk.version>
    <maven.compiler.source>${jdk.version}</maven.compiler.source>
    <maven.compiler.target>${jdk.version}</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <netty.version>4.1.56.Final</netty.version>
    <slf4j.version>2.0.0-alpha5</slf4j.version>
    <junit.version>4.12</junit.version>
    <gpg.keyname>8011431D42D5A9ACBEF8B2A6D153D68FA8DF084C</gpg.keyname>
  </properties>

	<build>
		<plugins>
		  <plugin>
	        <groupId>org.apache.maven.plugins</groupId>
	        <artifactId>maven-compiler-plugin</artifactId>
	        <configuration>
	          <source>1.8</source>
	          <target>1.8</target>
	          <encoding>UTF-8</encoding>
	          <forceJavacCompilerUse>true</forceJavacCompilerUse>
	        </configuration>
	      </plugin>
	      
	      <plugin>
	      	<groupId>org.apache.maven.plugins</groupId>
	      	<artifactId>maven-source-plugin</artifactId>
	      	<executions>
	      		<execution>
	      			<id>attach-sources</id>
	      			<goals>
	      				<goal>jar</goal>
	      			</goals>
	      		</execution>
	      	</executions>
	      </plugin>
	      
	      <plugin>
	      	<groupId>org.apache.maven.plugins</groupId>
	      	<artifactId>maven-javadoc-plugin</artifactId>
	      	<executions>
	      		<execution>
	      			<id>attach-javadocs</id>
	      			<goals>
	      				<goal>jar</goal>
	      			</goals>
	      		</execution>
	      	</executions>
	      </plugin>
	      
	     <plugin>
	      <groupId>org.apache.maven.plugins</groupId>
	      <artifactId>maven-gpg-plugin</artifactId>
	      <executions>
	        <execution>
	          <id>sign-artifacts</id>
	          <phase>verify</phase>
	          <goals>
	            <goal>sign</goal>
	          </goals>
	          <configuration>
	              <keyname>${gpg.keyname}</keyname>
	              <executable>/usr/local/bin/gpg</executable>
	          </configuration>    
	        </execution>
	      </executions>
	    </plugin>
	      
     	<plugin>
	      <groupId>org.sonatype.plugins</groupId>
	      <artifactId>nexus-staging-maven-plugin</artifactId>
	      <extensions>true</extensions>
	      <configuration>
	        <serverId>ossrh</serverId>
	        <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
	        <autoReleaseAfterClose>true</autoReleaseAfterClose>
	      </configuration>
        <dependencies>
        <dependency>
          <groupId>com.thoughtworks.xstream</groupId>
          <artifactId>xstream</artifactId>
          <version>1.4.15</version> <!-- apparently this needs to be exactly this version -->
        </dependency>
      </dependencies>
    	</plugin>
	    	
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
      </plugin>

		</plugins>
		
	</build>

  <dependencies>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>

<!--
	<dependency>
	    <groupId>io.openliberty.features</groupId>
	    <artifactId>jsonp-2.0</artifactId>
	    <version>22.0.0.12</version>
	</dependency>

	<dependency>
	    <groupId>io.openliberty.features</groupId>
	    <artifactId>io.openliberty.jsonbImpl-2.0.1</artifactId>
	    <version>22.0.0.12</version>
	</dependency>


-->
    <dependency>
        <groupId>org.apache.geronimo.specs</groupId>
        <artifactId>geronimo-json_1.1_spec</artifactId>
    </dependency>

   	<dependency>
	    <groupId>org.apache.johnzon</groupId>
	    <artifactId>johnzon-jsonb</artifactId>
	</dependency>

<!--
    <dependency>
	    <groupId>jakarta.json</groupId>
	    <artifactId>jakarta.json-api</artifactId>
	</dependency>


    
    <dependency>
    	<groupId>org.eclipse.parsson</groupId>
    	<artifactId>parsson</artifactId>
    </dependency>
-->
<!--
    
	<dependency>
	    <groupId>org.apache.geronimo.specs</groupId>
	    <artifactId>geronimo-jsonb_1.0_spec</artifactId>
	    <version>1.4</version>
	</dependency>

-->


	<dependency>
		<groupId>com.github.wnameless.json</groupId>
		<artifactId>json-flattener</artifactId>
	</dependency>

  </dependencies>


</project>
