<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>

    <parent>
        <groupId>org.neo4j</groupId>
        <artifactId>parent</artifactId>
        <version>5.9.0</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <artifactId>cypher-parent</artifactId>
    <packaging>pom</packaging>
    <name>Neo4j - Community Cypher Build</name>
    <description>Project that builds the Neo4j Cypher modules as part of the Community distribution.</description>
    <url>http://components.neo4j.org/${project.artifactId}/${project.version}</url>

    <properties>
        <licensing.prepend.text>licensing/notice-gpl-prefix.txt</licensing.prepend.text>
        <license-text.header>headers/GPL-3-header.txt</license-text.header>
    </properties>

    <scm>
        <connection>scm:git:git://github.com/neo4j/neo4j.git</connection>
        <developerConnection>scm:git:git@github.com:neo4j/neo4j.git</developerConnection>
        <url>https://github.com/neo4j/neo4j</url>
    </scm>

    <profiles>
        <profile>
            <id>include-cypher</id>
            <activation>
                <property>
                    <name>!skipCypher</name>
                </property>
            </activation>
            <modules>
                <module>ir</module>
                <module>cypher-planner</module>
                <module>planner-spi</module>
                <module>cypher</module>
                <module>cypher-logical-plans</module>
                <module>front-end</module>
                <module>runtime-util</module>
                <module>interpreted-runtime</module>
                <module>slotted-runtime</module>
                <module>physical-planning</module>
                <module>acceptance-spec-suite</module>
                <module>compatibility-spec-suite</module>
                <module>spec-suite-tools</module>
                <module>logical-plan-builder</module>
                <module>logical-plan-generator</module>
                <module>runtime-spec-suite</module>
                <module>expression-evaluator</module>
                <module>cypher-testing</module>
                <module>cypher-config</module>
                <module>cypher-cache</module>
                <module>literal-interpreter</module>
                <module>graph-counts</module>
            </modules>
        </profile>
        <profile>
            <id>test-freki</id>
            <activation>
                <activeByDefault>false</activeByDefault>
                <property>
                    <name>NEO4J_OVERRIDE_STORE_FORMAT</name>
                    <value>freki</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.neo4j</groupId>
                    <artifactId>neo4j-freki-storage-engine</artifactId>
                    <version>${project.version}</version>
                    <scope>runtime</scope>
                </dependency>
            </dependencies>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.neo4j.build.plugins</groupId>
                            <artifactId>licensing-maven-plugin</artifactId>
                            <configuration>
                                <skip>true</skip>
                            </configuration>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <groupId>net.alchim31.maven</groupId>
                <artifactId>scala-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.propensive</groupId>
                <artifactId>magnolia_${scala.binary.version}</artifactId>
                <version>0.17.0</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
</project>
