<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.salesforce.i18n</groupId>
  <artifactId>i18n-util</artifactId>
  <version>1.0.4</version>
  <packaging>jar</packaging>
    
  <name>I18n Utils</name>
  <description>A set of internationalization utilities..</description>
  <url>https://github.com/salesforce/i18n-util</url>
  <organization>
      <name>Salesforce</name>
      <url>http://www.salesforce.com</url>
  </organization>
  
  <licenses>
      <license>
          <name>BSD 3-Clause</name>
          <url>file://${basedir}/LICENSE.txt</url>
      </license>
  </licenses>
  
  <developers>
    <developer>
        <name>Steven Tamm</name>
        <roles>
            <role>Member</role>
        </roles>
        <email>stamm@salesforce.com </email>
        <organization>Salesforce</organization>
    </developer>
    <developer>
        <name>Yoshiyuki Oikawa</name>
        <roles>
            <role>Member</role>
        </roles>
        <email>yoikawa@salesforce.com</email>
        <organization>Salesforce</organization>
    </developer>
    <developer>
        <name>Pu Chen</name>
        <roles>
            <role>Member</role>
        </roles>
        <email>pu.chen@salesforce.com</email>
        <organization>Salesforce</organization>
    </developer>
    <developer>
        <name>Bo Yang</name>
        <roles>
            <role>Member</role>
        </roles>
        <email>bo.yang@salesforce.com</email>
        <organization>Salesforce</organization>
    </developer>        
  </developers>

  <properties>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
    <icu4j.version>60.2</icu4j.version>
    <icu4j-localespi.version>60.2</icu4j-localespi.version>
    <icu4j-charset.version>60.2</icu4j-charset.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  
  <profiles>
    <profile>
      <!-- This profile uploads to sonatype (which is used to get artifacts into maven central) -->
      <id>sonatype-staging</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation> 
      <distributionManagement>
        <snapshotRepository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
      </distributionManagement>
      <!-- Nexus Staging -->
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.7</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>false</autoReleaseAfterClose>
            </configuration>
          </plugin>
        </plugins> 
      </build>
    </profile>
    
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <!-- Javadoc JAR settings -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
                <bottom>Copyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under
                    the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the
                    repository.
                </bottom>
                <additionalparam>-Xdoclint:none</additionalparam>
            </configuration>
            <executions>
                <execution>
                  <id>attach-javadocs</id>
                  <goals>
                     <goal>jar</goal>
                  </goals>
                </execution>
                <execution>
                  <id>aggregate</id>
                  <goals>
                    <goal>aggregate</goal>
                  </goals>
                  <phase>site</phase>
                </execution>
            </executions>
          </plugin>
          
          <!-- GPG Signed -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
	  </plugin>       
        </plugins>
      </build>
    </profile>      
  </profiles>
  
  <build>    
    <plugins>
      <!-- always build source jars -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.4</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      
      <!-- Code coverage -->
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>0.7.9</version>
        <executions>
          <execution>
              <goals>
                  <goal>prepare-agent</goal>
              </goals>
          </execution>
          <execution>
              <id>report</id>
              <phase>test</phase>
              <goals>
                  <goal>report</goal>
              </goals>
          </execution>
        </executions>
      </plugin> 
	  
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.2</version>
	  </plugin>
	   
	   <!-- Maven Release plugin -->
	   <plugin>
	    <groupId>org.apache.maven.plugins</groupId>
	    <artifactId>maven-release-plugin</artifactId>
	    <version>2.5.3</version>
	    <configuration>
	      <autoVersionSubmodules>true</autoVersionSubmodules>
	      <useReleaseProfile>false</useReleaseProfile>
	      <releaseProfiles>release</releaseProfiles>
	      <goals>deploy</goals>
	    </configuration>
	  </plugin>

    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.6</version>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>19.0</version>
    </dependency>
    <dependency>
      <groupId>com.ibm.icu</groupId>
      <artifactId>icu4j</artifactId>
      <version>${icu4j.version}</version>
    </dependency>
    <dependency>
      <groupId>com.ibm.icu</groupId>
      <artifactId>icu4j-localespi</artifactId>
      <version>${icu4j-localespi.version}</version>
    </dependency>
    <dependency>
      <groupId>com.ibm.icu</groupId>
      <artifactId>icu4j-charset</artifactId>
      <version>${icu4j-charset.version}</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <scm>
    <connection>
      scm:git:git://github.com/salesforce/i18n-util.git
    </connection>
    <developerConnection>
      scm:git:ssh://github.com:salesforce/i18n-util.git
    </developerConnection>
    <url>
      https://github.com/salesforce/i18n-util.git
    </url>
    <tag>i18n-util-1.0.4</tag>
  </scm>
  
</project>
