<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <artifactId>funnelback-shared</artifactId>
    <packaging>jar</packaging>
    <name>Plugin Shared</name>
    <parent>
        <groupId>com.funnelback</groupId>
        <artifactId>funnelback-shared-parent</artifactId>
        <version>16.42.0</version>
    </parent>

    <description>Shared interfaces and other supporting components for building plugins for the Funnelback Enterprise Search Engine</description>
    <url>https://github.com/FunnelbackPtyLtd/funnelback-shared</url>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>Funnelback R&amp;D Team</name>
            <email>dev@funnelback.com</email>
            <organization>Funnelback</organization>
            <organizationUrl>https://funnelback.com</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git://github.com/FunnelbackPtyLtd/funnelback-shared.git</connection>
        <developerConnection>scm:git:ssh://github.com:FunnelbackPtyLtd/funnelback-shared.git</developerConnection>
        <url>http://github.com/FunnelbackPtyLtd/funnelback-shared/tree/master</url>
    </scm>

    <distributionManagement>
        <snapshotRepository>
            <id>gitlab-maven</id>
            <url>https://gitlab.squiz.net/api/v4/projects/11481/packages/maven</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

    <build>
        <finalName>funnelback-${project.artifactId}-${project.version}</finalName>
        <plugins>
            <!-- Disabled this - For some reason the plugin is failing to load from maven central
                 Maybe we'll need to bring this back if it's output is really needed though.
             -->
            <!--
            <plugin>
                <groupId>com.fasterxml.jackson</groupId>
                <artifactId>jackson-json-schema-plugin</artifactId>
                <version>15.25.2021-SNAPSHOT</version>
                <executions>
                    <execution>
                        <id>generate1</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <includes>
                                <include>com/funnelback/publicui/search/model/transaction/SearchTransaction</include>
                            </includes>
                            <outputSchema>${project.basedir}/src/main/javadoc/doc-files/SearchTransactionSchema.json</outputSchema>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>com.google.code.findbugs</groupId>
                        <artifactId>jsr305</artifactId>
                        <version>3.0.0</version>
                    </dependency>
                </dependencies>
            </plugin>
        -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.11.2</version>
                <configuration>
                    <show>private</show>
                    <sourceFileIncludes>
                        <include>com/**/*.java</include>
                    </sourceFileIncludes>
                    <!-- It can be tempting to turn this to false, don't-->
                    <failOnError>true</failOnError>
                    <docfilessubdirs>true</docfilessubdirs>
                    <failOnError>false</failOnError>
                    <!-- https://stackoverflow.com/a/57284322 -->
                    <bottom>
                    <![CDATA[
                        <script>
                        if (typeof useModuleDirectories !== 'undefined') {
                          useModuleDirectories = false;
                        }
                        </script>
                    ]]>
                    </bottom>
                    <additionalOptions>--allow-script-in-comments</additionalOptions>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.thoughtworks.xstream</groupId>
            <artifactId>xstream</artifactId>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hibernate.javax.persistence</groupId>
            <artifactId>hibernate-jpa-2.1-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
