<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright 2022 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-xts-persistence</artifactId>
    <version>4.150.0</version>
  </parent>
  <artifactId>legend-engine-xt-persistence-cloud-grammar</artifactId>
  <version>4.150.0</version>
  <name>Legend Engine - XT - Persistence Cloud - Grammar</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-m3-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-xt-persistence-pure</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-xt-persistence-cloud-pure</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-xt-persistence-protocol</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-xt-persistence-cloud-protocol</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-language-pure-grammar</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-xt-persistence-grammar</artifactId>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-language-pure-compiler</artifactId>
    </dependency>
    <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>antlr4-runtime</artifactId>
      <scope>compile</scope>
    </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>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-configuration-contract-extension-pure</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-language-pure-compiler</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-xt-relationalStore-grammar</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-xt-relationalStore-snowflake-grammar</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.finos.legend.engine</groupId>
      <artifactId>legend-engine-xt-relationalStore-h2-execution-2.1.214</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-antlr-core-grammar</id>
            <phase>initialize</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.finos.legend.engine</groupId>
                  <artifactId>legend-engine-language-pure-grammar</artifactId>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>${project.build.directory}</outputDirectory>
                  <includes>antlr/*.g4</includes>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
          <execution>
            <id>dependency-analyze</id>
            <configuration>
              <ignoredUnusedDeclaredDependencies>
                <dependency>org.finos.legend.pure:legend-pure-m3-core</dependency>
                <dependency>org.finos.legend.engine:legend-engine-protocol</dependency>
                <dependency>org.finos.legend.engine:legend-engine-protocol-pure</dependency>
                <dependency>org.finos.legend.engine:legend-engine-pure-code-compiled-core</dependency>
              </ignoredUnusedDeclaredDependencies>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.antlr</groupId>
        <artifactId>antlr4-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>antlr4</goal>
            </goals>
            <configuration>
              <visitor>true</visitor>
              <listener>true</listener>
              <treatWarningsAsErrors>true</treatWarningsAsErrors>
              <libDirectory>target/antlr</libDirectory>
              <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
