<?xml version="1.0" encoding="UTF-8"?>
<!-- © 2019 and later: Unicode, Inc. and others.
     License & terms of use: http://www.unicode.org/copyright.html
     See README.txt for instructions on updating the local repository.
     -->
<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>

    <!-- Include the parent POM file to add the CLDR API dependency. -->
    <parent>
        <groupId>org.unicode.icu</groupId>
        <artifactId>cldr-lib</artifactId>
        <version>1.0</version>
        <relativePath>../lib</relativePath>
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <!-- No need for <groupId> here (it's defined by the parent POM). -->
    <artifactId>cldr-to-icu</artifactId>
    <version>1.0-SNAPSHOT</version>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.1</version>
                <configuration>
                    <source>8</source>
                    <target>8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.6.0</version>
                <configuration>
                    <mainClass>
                        org.unicode.icu.tool.cldrtoicu.LdmlConverter
                    </mainClass>
                    <systemProperties>
                        <property>
                            <key>ICU_DIR</key>
                            <value>${project.basedir}/../../..</value>
                        </property>
                    </systemProperties>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>3.1.1</version>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <archive>
                                <manifest>
                                    <mainClass>
                                        org.unicode.icu.tool.cldrtoicu.LdmlConverter
                                    </mainClass>
                                </manifest>
                            </archive>
                            <descriptorRefs>
                                <descriptorRef>jar-with-dependencies</descriptorRef>
                            </descriptorRefs>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <!-- ICU4J - which should be kept as up-to-date as possible. -->
        <dependency>
            <groupId>com.ibm.icu</groupId>
            <artifactId>icu4j</artifactId>
            <version>75.0.1-SNAPSHOT</version>
		<!-- Note: see https://github.com/unicode-org/icu/packages/1954682/versions
			for the icu4j.version tag to use. In general we should just use the latest
			SNAPSHOT for the ICU version that we want, so this should only need updating
			when the ICU version changes e.g. from 74.0.1, to 74.1, then to 75.0.1 -->
        </dependency>

        <!-- Useful common libraries. Note that some of the code in the CLDR library is also
             built against a version of Guava that might not be as recent as this, so they
             be kept approximately in sync for good measure. -->
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>30.0-jre</version>
        </dependency>

        <!-- Ant: Only used for running the conversion tool, not compiling it. -->
        <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant</artifactId>
            <version>1.10.11</version>
        </dependency>

        <!-- Testing only dependencies. -->
        <dependency>
            <groupId>com.google.truth</groupId>
            <artifactId>truth</artifactId>
            <version>1.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.truth.extensions</groupId>
            <artifactId>truth-java8-extension</artifactId>
            <version>1.0</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>githubcldr</id>
            <name>GitHub unicode-org/icu Apache Maven Packages</name>
            <url>https://maven.pkg.github.com/unicode-org/icu</url>
        </repository>
    </repositories>
</project>
