<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>
  	<groupId>com.github.variflight</groupId>
  	<artifactId>feeyo-nio</artifactId>
  	<version>0.1.1</version>
  	<packaging>jar</packaging>
  	<url>https://github.com/variflight/feeyo-nio</url>
  	<name>feeyo-nio</name>
  	<description>NIO</description>
  	
	<properties>
    	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	<javadoc.skip>false</javadoc.skip>
   	</properties>
  
   	<licenses>
    	<license>
      		<name>BSD 3-Clause</name>
      		<url>https://spdx.org/licenses/BSD-3-Clause.html</url>
   	 	</license>
   	</licenses>
  
   	<scm>
		<connection>scm:git:git://github.com/variflight/feeyo-nio.git</connection>
  		<developerConnection>scm:git:ssh://github.com/variflight/feeyo-nio.git</developerConnection>
  		<url>https://github.com/variflight/feeyo-nio/tree/master</url>
   	</scm>
  
   	<developers>
     	<developer>
        	<name>zhuaming</name>
        	<email>zhuaming@gmail.com</email>
     	</developer> 
   	</developers>
  
   	<!-- OSS -->	
   	<distributionManagement> 
 	 <snapshotRepository>
        <id>ossrh</id>
        <name>Sonatype Nexus Snapshots</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
     </snapshotRepository>
     <repository>
        <id>ossrh</id>
        <name>Nexus Release Repository</name>
        <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
     </repository>
   	</distributionManagement>


    <dependencies>
    
    	<!-- feeyo BufferPool -->
        <dependency>
            <groupId>com.github.variflight</groupId>
            <artifactId>feeyo-bufferpool</artifactId>
            <version>0.1.0</version>
        </dependency>

		<!-- guava -->
		<!--  
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
          	<version>29.0-jre</version>
        </dependency>
        -->
        <dependency>
		  <groupId>com.google.guava</groupId>
		  <artifactId>guava</artifactId>
		  <version>[30.0-jre,)</version>
		</dependency>

		<!--  protobuf -->
        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java</artifactId>
            <version>3.5.1</version>
        </dependency>

        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java-util</artifactId>
            <version>3.5.1</version>
        </dependency>

        <!--log4j + slf4j-->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.2</version>
        </dependency>

		<!-- apache common -->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.5</version>
        </dependency>
        
        <dependency>
		    <groupId>org.apache.commons</groupId>
		    <artifactId>commons-math3</artifactId>
		    <version>3.5</version>
		</dependency>
		
		<dependency>
		    <groupId>commons-io</groupId>
		    <artifactId>commons-io</artifactId>
		    <version>2.7</version>
		</dependency>
        
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.13.1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
          
           <!-- Doc -->	
       	   <plugin>
		      <groupId>org.apache.maven.plugins</groupId>
		      <artifactId>maven-javadoc-plugin</artifactId>
		      <version>3.3.0</version>
		      <executions>
		        <execution>
		          <id>attach-javadocs</id>
		          <goals>
		            <goal>jar</goal>
		          </goals>
		          <configuration>  
	                 <additionalJOption>-Xdoclint:none</additionalJOption>
	              </configuration>  
		        </execution>
		      </executions>
		   </plugin>
       
       	   <!-- Source --> 
       	   <plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-source-plugin</artifactId>
			    <version>3.2.1</version>
			    <executions>
			     <execution>
			      <id>attach-sources</id>
			      <goals>
			       <goal>jar-no-fork</goal>
			      </goals>
			     </execution>
			    </executions>
		   </plugin>
       	   
       	   <!-- Compiler -->
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-compiler-plugin</artifactId>
               <version>3.8.0</version>
               <configuration>
                   <source>1.8</source>
                   <target>1.8</target>
                   <encoding>UTF-8</encoding>
               </configuration>
           </plugin>
            
           <!-- GPG Signature -->
           <plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-gpg-plugin</artifactId>
			    <version>1.6</version>
			    <executions>
			        <execution>
			            <id>sign-artifacts</id>
			            <phase>verify</phase>
			            <goals>
			                <goal>sign</goal>
			            </goals>
			            <configuration>
			                <gpgArguments>
			                    <arg>--pinentry-mode</arg>
			                    <arg>loopback</arg>
			                </gpgArguments>
			            </configuration>
			        </execution>
			    </executions>
			</plugin>
            
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>false</overWriteSnapshots>
                            <overWriteIfNewer>true</overWriteIfNewer>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            
            <!-- Nexus Staging Plugin -->
		    <plugin>
		        <groupId>org.sonatype.plugins</groupId>
		        <artifactId>nexus-staging-maven-plugin</artifactId>
		        
		        <version>1.6.8</version>
		        <extensions>true</extensions>
		        <configuration>
		          <serverId>oss</serverId> <!-- settings.xml-->
		          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
		          <repository>Releases</repository>
		          <autoReleaseAfterClose>false</autoReleaseAfterClose>
		          <skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
		        </configuration>
		    </plugin>
        </plugins>
    </build>
</project>