<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright 2020 Goldman Sachs

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.finos.legend.engine</groupId>
    <artifactId>legend-engine-core-language-pure</artifactId>
    <version>4.150.0</version>
  </parent>
  <artifactId>legend-engine-language-pure-compiler</artifactId>
  <version>4.150.0</version>
  <name>Legend Engine - Language Pure - Compiler</name>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <dependencies>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m4</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m3-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m2-store-relational-pure</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m2-dsl-mapping-grammar</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m2-dsl-path-grammar</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m2-dsl-graph-grammar</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m2-dsl-store-grammar</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m2-dsl-mapping-pure</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m2-dsl-store-pure</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m2-dsl-path-pure</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-m2-dsl-graph-pure</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-runtime-java-extension-compiled-dsl-path</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-runtime-java-extension-compiled-dsl-graph</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-runtime-java-extension-compiled-dsl-mapping</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-pure-platform-dsl-mapping-java</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-pure-platform-dsl-store-java</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.pure</groupId>
      <artifactId>legend-pure-runtime-java-engine-compiled</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-pure-code-compiled-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-pure-platform-java</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-shared-extensions</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-shared-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-identity-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-protocol</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-protocol-pure</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-pure-platform-precisePrimitives-java</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.eclipse.collections</groupId>
      <artifactId>eclipse-collections-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.eclipse.collections</groupId>
      <artifactId>eclipse-collections</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-reload4j</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.reload4j</groupId>
      <artifactId>reload4j</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-language-pure-grammar</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-language-pure-grammar</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-pure-runtime-java-extension-compiled-functions-json</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>dependency-analyze</id>
            <phase>test-compile</phase>
            <goals>
              <goal>analyze-only</goal>
            </goals>
            <configuration>
              <ignoredUnusedDeclaredDependencies>
                <ignoredUnusedDeclaredDependency>org.finos.legend.engine:legend-engine-pure-platform-dsl-store-java</ignoredUnusedDeclaredDependency>
              </ignoredUnusedDeclaredDependencies>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>generate handlers helper</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>java</goal>
            </goals>
            <configuration>
              <includePluginDependencies>true</includePluginDependencies>
              <mainClass>org.finos.legend.engine.pure.code.core.MatchGenerator</mainClass>
              <arguments>
                <argument>org.finos.legend.engine.language.pure.compiler.toPureGraph</argument>
                <argument>FunctionDispatchExtension</argument>
                <argument>handlers_dispatch_functions.txt</argument>
                <argument>${project.build.directory}/generated-sources/</argument>
              </arguments>
              <classpathScope>test</classpathScope>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.finos.legend.pure</groupId>
            <artifactId>legend-pure-runtime-java-engine-interpreted</artifactId>
            <version>${legend.pure.version}</version>
          </dependency>
        </dependencies>
        <configuration>
          <addResourcesToClasspath>true</addResourcesToClasspath>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
