<?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">
  <parent>
    <artifactId>dekorate-project</artifactId>
    <groupId>io.dekorate</groupId>
    <version>4.1.8</version>
    <relativePath>../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>examples</artifactId>

  <packaging>pom</packaging>
  <name>Dekorate :: Examples</name>

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

  <profiles>
    <profile>
      <id>with-internal-registry</id>
      <activation>
        <property>
          <name>!docker-registry</name>
        </property>
      </activation>
      <modules>
        <module>kubernetes-with-configmap-volume-example</module>
        <module>kubernetes-with-custom-image-name-example</module>
        <module>kubernetes-with-hostaliases-example</module>
        <module>kubernetes-with-nodeselectors-example</module>
        <module>frameworkless-on-kubernetes-example</module>
        <module>frameworkless-on-openshift-example</module>
        <module>spring-boot-on-kubernetes-example</module>
        <module>spring-boot-on-kubernetes-without-annotations</module>
        <module>spring-boot-on-kubernetes-with-jib-example</module>
        <module>spring-boot-on-kubernetes-with-jib-custom-registry-example</module>
        <module>spring-boot-on-knative-example</module>
        <module>spring-boot-on-openshift-example</module>
        <module>spring-boot-on-openshift-with-jib-custom-registry-example</module>
        <module>spring-boot-on-openshift-with-ocp-properties-example</module>
        <module>spring-boot-on-openshift-with-dekorate-profile-example</module>
        <module>spring-boot-with-groovy-on-openshift-example</module>
        <module>spring-boot-with-existing-manifests-on-kubernetes-example</module>
        <module>spring-boot-with-fmp-on-kubernetes-example</module>
        <module>spring-boot-with-prometheus-on-kubernetes-example</module>
        <module>spring-boot-with-jaeger-on-kubernetes-example</module>
        <module>spring-boot-with-tekton-example</module>
        <module>spring-boot-with-tekton-and-m2-pvc-example</module>
        <module>spring-boot-on-kubernetes-with-certmanager-example</module>
        <module>spring-boot-on-openshift-with-certmanager-example</module>
        <module>thorntail-on-kubernetes-example</module>
        <module>thorntail-on-openshift-example</module>
        <module>vertx-on-kubernetes-example</module>
        <module>vertx-on-openshift-example</module>
        <module>minikube-example</module>
        <module>minikube-example-with-properties</module>
        <module>helm-on-kubernetes-example</module>
        <module>helm-on-openshift-example</module>
        <module>kind-example</module>
      </modules>
    </profile>

    <profile>
      <id>with-dockerio</id>
      <activation>
        <property>
          <name>docker-registry</name>
          <value>docker.io</value>
        </property>
      </activation>
      <modules>
        <module>spring-boot-on-openshift-with-docker-example</module>
      </modules>
    </profile>

    <profile>
      <id>with-service-binding-examples</id>
      <modules>
        <module>spring-boot-on-kubernetes-with-sbo-example</module>
      </modules>
    </profile>

    <profile>
      <id>with-gradle-examples</id>
      <activation>
        <jdk>[1,1.8)</jdk>
      </activation>
      <!-- We need to skip all modules using gradle with jdk11+ as the
           org.fortasoft:gradle-maven-plugin doesn't support it. So we only enable them on jdk9. -->

      <!-- Update: we will also disable on jdk8 as its causing issues with the
           CI -->
      <modules>
        <module>spring-boot-with-gradle-on-kubernetes-example</module>
        <module>spring-boot-with-gradle-on-openshift-example</module>
      </modules>
    </profile>

    <profile>
      <id>with-knative-examples</id>
      <modules>
        <module>knative-example</module>
      </modules>
    </profile>

    <profile>
      <id>with-openshift-specific-examples</id>
      <modules>
        <module>multimodule-projects-on-openshift-example</module>
      </modules>
    </profile>

    <profile>
      <id>with-kubernetes-specific-examples</id>
      <modules>
        <module>multimodule-projects-on-kubernetes-example</module>
      </modules>
    </profile>
  </profiles>
</project>
