<?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>org.gcube.idm</groupId>
  <artifactId>idm-common-library</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <name>Identity Manager (IDM) Common Library</name>
  <description>Identity Manager (IDM) Common Library</description>

  <parent>
    <groupId>org.gcube.tools</groupId>
    <artifactId>maven-parent</artifactId>
    <version>1.2.0</version>
  </parent>

  <properties>
    <java.version>11</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>${java.version}</maven.compiler.source>
    <maven.compiler.target>${java.version}</maven.compiler.target>

    <enunciate.version>2.16.1</enunciate.version>

  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.gcube.distribution</groupId>
        <artifactId>gcube-smartgears-bom</artifactId>
        <version>3.0.1-SNAPSHOT</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>

    <!-- 
    ClassNotFoundException in Maven dependencies for jakarta.ws.rs.ext.RuntimeDelegate?
    https://stackoverflow.com/questions/76388336/what-is-causing-the-java-lang-classnotfoundexception-in-maven-dependencies-for-j
   -->
   <dependency>
    <groupId>org.glassfish.jersey.core</groupId>
    <artifactId>jersey-common</artifactId>
    <version>3.1.5</version>
  </dependency>

    <dependency>
      <groupId>org.gcube.core</groupId>
      <artifactId>common-smartgears</artifactId>
    </dependency>

    <dependency>
      <groupId>org.gcube.common</groupId>
      <artifactId>authorization-client</artifactId>
    </dependency>


    <dependency>
      <groupId>org.gcube.core</groupId>
      <artifactId>common-smartgears-app</artifactId>
    </dependency>

    <!-- Required for Enunciate plugin -->
    <!-- https://mvnrepository.com/artifact/com.webcohesion.enunciate/enunciate-core-annotations -->
    <dependency>
      <groupId>com.webcohesion.enunciate</groupId>
      <artifactId>enunciate-core-annotations</artifactId>
      <version>${enunciate.version}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.webcohesion.enunciate</groupId>
      <artifactId>enunciate-rt-util</artifactId>
      <version>${enunciate.version}</version>
      <scope>provided</scope>
    </dependency>


    <dependency>
      <groupId>org.gcube.resources.discovery</groupId>
      <artifactId>ic-client</artifactId>
    </dependency>

    <dependency>
      <groupId>jakarta.activation</groupId>
      <artifactId>jakarta.activation-api</artifactId>
      <version>1.2.1</version>
  </dependency>
  <dependency>
      <groupId>jakarta.xml.bind</groupId>
      <artifactId>jakarta.xml.bind-api</artifactId>
  </dependency>
  <dependency>
      <groupId>org.glassfish.jaxb</groupId>
      <artifactId>jaxb-runtime</artifactId>
  </dependency>
  <dependency>
    <groupId>org.gcube.core</groupId>
    <artifactId>common-scope</artifactId>
    <scope>provided</scope>
  </dependency>

    <!-- END Required for Enunciate plugin -->


    <!-- Test Dependencies -->

    <dependency>
      <groupId>org.gcube.common.security</groupId>
      <artifactId>gcube-secrets</artifactId>
      <scope>test</scope>
      <version>1.0.0</version>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>aspectjrt</artifactId>
      <version>1.9.7</version>
      <scope>runtime</scope>
    </dependency>

  </dependencies>
</project>