<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.

    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 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>
    <parent>
        <groupId>io.helidon</groupId>
        <artifactId>helidon-project</artifactId>
        <version>1.2.1</version>
    </parent>
    <artifactId>helidon-javadocs</artifactId>
    <name>Helidon Javadocs</name>

    <properties>
        <maven.source.skip>true</maven.source.skip>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <!-- skip the execution added by the javadoc profile -->
                     <execution>
                        <id>default-jar</id>
                        <configuration>
                            <skip>true</skip>
                        </configuration>
                    </execution>
                    <execution>
                        <id>javadoc</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>javadoc-no-fork</goal>
                        </goals>
                        <configuration>
                            <bottom>
                            <![CDATA[Copyright &copy; {inceptionYear}&ndash;{currentYear}
                                <a href="https://www.oracle.com/index.html">Oracle</a>
                                and/or its affiliates.
                                All rights reserved. Use is subject to license terms.]]>
                            </bottom>
                            <dependencySourceExcludes>
                                <dependencySourceExclude>org.osgi:*</dependencySourceExclude>
                                <dependencySourceExclude>com.typesafe:config-test-lib_*</dependencySourceExclude>
                                <dependencySourceExclude>javax.annotation:*</dependencySourceExclude>
                                <dependencySourceExclude>javax.interceptor:*</dependencySourceExclude>
                                <dependencySourceExclude>javax.enterprise.concurrent:*</dependencySourceExclude>
                                <dependencySourceExclude>javax.el:*</dependencySourceExclude>
                            </dependencySourceExcludes>
                            <dependencySourceIncludes>
                                <dependencySourceInclude>io.helidon.*:*</dependencySourceInclude>
                                <dependencySourceInclude>io.helidon*:*</dependencySourceInclude>
                            </dependencySourceIncludes>
                            <destDir>classes</destDir>
                            <doclint>none</doclint>
                            <doctitle>Helidon ${project.version} API Documentation</doctitle>
                            <excludePackageNames>*.internal:*.internal.*:*.config.testing.*</excludePackageNames>
                            <groups>
                                <group>
                                    <title>Microprofile</title>
                                    <packages>io.helidon.microprofile*</packages>
                                </group>
                                <group>
                                    <title>Common APIs</title>
                                    <packages>io.helidon.common*:io.helidon.common.reactive*</packages>
                                </group>
                                <group>
                                    <title>Configuration API</title>
                                    <packages>io.helidon.config*</packages>
                                </group>
                                <group>
                                    <title>Media Support APIs</title>
                                    <packages>io.helidon.media*</packages>
                                </group>
                                <group>
                                    <title>Security API</title>
                                    <packages>io.helidon.security*</packages>
                                </group>
                                <group>
                                    <title>Reactive Web Server API</title>
                                    <packages>io.helidon.webserver*</packages>
                                </group>
                                <group>
                                    <title>Integrations</title>
                                    <packages>io.helidon.integrations*:io.helidon.service.configuration*</packages>
                                </group>
                            </groups>
                            <includeDependencySources>true</includeDependencySources>
                            <includeTransitiveDependencySources>true</includeTransitiveDependencySources>
                            <maxmemory>256m</maxmemory>
                            <reportOutputDirectory>${project.build.directory}</reportOutputDirectory>
                            <sourceFileExcludes>
                              <sourceFileExclude>**/module-info.java</sourceFileExclude>
                              <!--
                                  Exclude JPA static metamodel stuff
                                  used during unit testing.  The
                                  plugin that generates this metamodel
                                  adds it irrevocably to the main, not
                                  test, compilation roots.
                              -->
                              <sourceFileExclude>**/*_.java</sourceFileExclude>
                            </sourceFileExcludes>
                            <sourceFileIncludes>
                                <sourceFileInclude>io/helidon/**/*.java</sourceFileInclude>
                            </sourceFileIncludes>
                            <windowtitle>Helidon ${project.version} API</windowtitle>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>io.helidon.webserver</groupId>
            <artifactId>helidon-webserver</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.media.jackson</groupId>
            <artifactId>helidon-media-jackson-common</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.media.jackson</groupId>
            <artifactId>helidon-media-jackson-server</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.media.jsonb</groupId>
            <artifactId>helidon-media-jsonb-common</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.media.jsonb</groupId>
            <artifactId>helidon-media-jsonb-server</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.media.jsonp</groupId>
            <artifactId>helidon-media-jsonp-server</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.media.jsonp</groupId>
            <artifactId>helidon-media-jsonp-common</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.metrics</groupId>
            <artifactId>helidon-metrics-prometheus</artifactId>
            <version>${project.version}</version>
        </dependency>
        <!-- config -->
        <dependency>
            <groupId>io.helidon.config</groupId>
            <artifactId>helidon-config-etcd</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.config</groupId>
            <artifactId>helidon-config-git</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.config</groupId>
            <artifactId>helidon-config-testing</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.config</groupId>
            <artifactId>helidon-config-object-mapping</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.config</groupId>
            <artifactId>helidon-config-encryption</artifactId>
            <version>${project.version}</version>
        </dependency>
        <!-- security -->
        <dependency>
            <groupId>io.helidon.security</groupId>
            <artifactId>helidon-security</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!-- Support for outbound security filtering -->
            <groupId>io.helidon.security.providers</groupId>
            <artifactId>helidon-security-providers-common</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!-- Support for Google access token -->
            <groupId>io.helidon.security.providers</groupId>
            <artifactId>helidon-security-providers-google-login</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.security.providers</groupId>
            <artifactId>helidon-security-providers-jwt</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!-- Basic and digest authentication -->
            <groupId>io.helidon.security.providers</groupId>
            <artifactId>helidon-security-providers-http-auth</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!-- Authentication provider supporting Signatures -->
            <groupId>io.helidon.security.providers</groupId>
            <artifactId>helidon-security-providers-http-sign</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!-- Jersey integration -->
            <groupId>io.helidon.security.integration</groupId>
            <artifactId>helidon-security-integration-jersey</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!-- Web server integration -->
            <groupId>io.helidon.security.integration</groupId>
            <artifactId>helidon-security-integration-webserver</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!-- Integration annotations -->
            <groupId>io.helidon.security</groupId>
            <artifactId>helidon-security-annotations</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!-- Attribute based access control support -->
            <groupId>io.helidon.security.providers</groupId>
            <artifactId>helidon-security-providers-abac</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.security.abac</groupId>
            <artifactId>helidon-security-abac-time</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.security.abac</groupId>
            <artifactId>helidon-security-abac-role</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.security.abac</groupId>
            <artifactId>helidon-security-abac-scope</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.security.abac</groupId>
            <artifactId>helidon-security-abac-policy</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.security.abac</groupId>
            <artifactId>helidon-security-abac-policy-el</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!-- JWT and JWK support -->
            <groupId>io.helidon.security</groupId>
            <artifactId>helidon-security-jwt</artifactId>
            <version>${project.version}</version>
        </dependency>
        <!-- tracing -->
        <dependency>
            <groupId>io.helidon.tracing</groupId>
            <artifactId>helidon-tracing</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.tracing</groupId>
            <artifactId>helidon-tracing-zipkin</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.tracing</groupId>
            <artifactId>helidon-tracing-jersey-client</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.tracing</groupId>
            <artifactId>helidon-tracing-jersey</artifactId>
            <version>${project.version}</version>
        </dependency>
        <!-- microprofile -->
        <dependency>
            <groupId>io.helidon.microprofile.bundles</groupId>
            <artifactId>helidon-microprofile-1.2</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.helidon.microprofile</groupId>
            <artifactId>helidon-microprofile-security</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>integrations</id>
            <dependencies>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-api</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-config-source</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-hikaricp-accs</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-hikaricp-localhost</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-hikaricp</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-ucp-accs</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-ucp-localhost</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-ucp</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-system-kubernetes</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.serviceconfiguration</groupId>
                    <artifactId>helidon-serviceconfiguration-system-oracle-accs</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-datasource</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-datasource-hikaricp</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-datasource-ucp</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-delegates</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-eclipselink</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-jedis</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-oci-objectstorage</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-reference-counted-context</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>javax.transaction</groupId>
                    <artifactId>javax.transaction-api</artifactId>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-jpa</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-jpa-weld</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-jta</artifactId>
                    <version>${project.version}</version>
                </dependency>
                <dependency>
                    <groupId>io.helidon.integrations.cdi</groupId>
                    <artifactId>helidon-integrations-cdi-jta-weld</artifactId>
                    <version>${project.version}</version>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jar-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>empty-sources-jar</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                                <configuration>
                                    <classifier>sources</classifier>
                                    <classesDirectory>${project.build.directory}/sources</classesDirectory>
                                </configuration>
                            </execution>
                            <execution>
                                <id>empty-javadoc-jar</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                                <configuration>
                                    <classifier>javadoc</classifier>
                                    <classesDirectory>${project.build.directory}/javadoc</classesDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
