<?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>

    <parent>
        <groupId>d4science-liferay-74</groupId>
        <artifactId>d4science-liferay-74-modules</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath> <!-- Adjust this path if needed -->
    </parent>

    <groupId>org.gcube.vomanagement</groupId>
    <artifactId>usermanagement</artifactId>
    <version>3.0.0-SNAPSHOT</version>
    <name>usermanag</name>
    <packaging>jar</packaging>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.gcube.distribution</groupId>
                <artifactId>maven-portal-bom-javax</artifactId>
                <version>5.0.0-SNAPSHOT</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <properties>
        <java.compiler.source.version>17</java.compiler.source.version>
        <java.compiler.target.version>17</java.compiler.target.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <!-- Liferay APIs (provided by the platform) -->
        <dependency>
            <groupId>com.liferay.portal</groupId>
            <artifactId>release.portal.api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Logging (provided by the platform) -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>

        <!-- gCube Dependencies (use -javax versions) -->
        <dependency>
            <groupId>org.gcube.common</groupId>
            <artifactId>authorization-client-javax</artifactId>
            <version>[4.0.0-SNAPSHOT,5.0.0-SNAPSHOT)</version>
            <scope>provided</scope>
           </dependency>
           <dependency>
            <groupId>org.gcube.core</groupId>
            <artifactId>common-scope-javax</artifactId>
            <version>[3.0.0-SNAPSHOT,4.0.0-SNAPSHOT)</version>
            <scope>provided</scope>
           </dependency>

        <!-- Other utilities -->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.5.13</version>
        </dependency>
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
            <version>1.1.1</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>${java.compiler.source.version}</source>
                    <target>${java.compiler.target.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>3.5.1</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-Name>usermanag</Bundle-Name>
                        <Bundle-SymbolicName>org.gcube.vomanagement.usermanagement</Bundle-SymbolicName>
                        <Bundle-Version>${project.version}</Bundle-Version>
                        <Export-Package>org.gcube.vomanagement.usermanagement.*</Export-Package>
                        <Import-Package>
                            org.slf4j;version="[1.6,3)",
                            !org.json.simple.*,
                            *
                        </Import-Package>
                        <Embed-Dependency>json-simple;inline=true</Embed-Dependency>
                        <!-- This is equivalent to -includeresource: @json-simple-1.1.1.jar -->
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <failOnError>false</failOnError>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>