<?xml version="1.0" encoding="UTF-8"?>
<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>

    <groupId>net.moodia.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>2.3</version>
    <packaging>pom</packaging>

    <name>Moodia Plugin Framework (parent)</name>
    <description>DEPRECATED — legacy plugin framework for the Wiresphere container (Nashorn era).
        Published to Maven Central for dependency-resolution completeness; superseded and not under
        active development. Do not build new integrations against it.</description>
    <url>https://bitbucket.org/moodiagroup/plugin-framework</url>

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

    <developers>
        <developer>
            <id>aveith</id>
            <name>Andreas Veith</name>
            <email>a.veith@moodia.net</email>
            <organization>Moodia</organization>
            <organizationUrl>https://moodia.net</organizationUrl>
        </developer>
        <developer>
            <id>phundelsh</id>
            <name>Philipp Hundelshausen</name>
            <email>p.hundelshausen@moodia.net</email>
            <organization>Moodia</organization>
            <organizationUrl>https://moodia.net</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:https://bitbucket.org/moodiagroup/plugin-framework.git</connection>
        <developerConnection>scm:git:git@bitbucket.org:moodiagroup/plugin-framework.git</developerConnection>
        <url>https://bitbucket.org/moodiagroup/plugin-framework</url>
        <tag>HEAD</tag>
    </scm>

    <modules>
        <module>plugin-api</module>
        <module>plugin-framework</module>
    </modules>

    <!-- Maven Central publishing. Activate with: mvn deploy -Prelease
         Requires: a `central` server (publishing token) in ~/.m2/settings.xml and a GPG key. -->
    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>3.3.1</version>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>3.8.0</version>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <doclint>none</doclint>
                            <quiet>true</quiet>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>3.2.4</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.sonatype.central</groupId>
                        <artifactId>central-publishing-maven-plugin</artifactId>
                        <version>0.7.0</version>
                        <extensions>true</extensions>
                        <configuration>
                            <publishingServerId>central</publishingServerId>
                            <autoPublish>false</autoPublish>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
