<?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>
            <!-- <scope>provided</scope> -->
           </dependency>
           <dependency>
            <groupId>org.gcube.core</groupId>
            <artifactId>common-scope-javax</artifactId>
            <!-- <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>biz.aQute.bnd</groupId>
    			<artifactId>bnd-maven-plugin</artifactId>
    			<version>6.4.0</version>
    			<executions>
    				<execution>
    					<goals>
    						<goal>bnd-process</goal>
    					</goals>
    				</execution>
    			</executions>
    			<dependencies>
    				<dependency>
    					<groupId>biz.aQute.bnd</groupId>
    					<artifactId>biz.aQute.bndlib</artifactId>
    					<version>6.4.0</version>
    				</dependency>
    				<dependency>
    					<groupId>com.liferay</groupId>
    					<artifactId>com.liferay.ant.bnd</artifactId>
    					<version>3.2.12</version>
    				</dependency>
    			</dependencies>
    		</plugin>
    		<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.maven.plugins</groupId>
    			<artifactId>maven-jar-plugin</artifactId>
    			<version>3.1.2</version>
    			<configuration>
    				<archive>
    					<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    				</archive>
    			</configuration>
    		</plugin>
    		<plugin>
    			<groupId>org.apache.maven.plugins</groupId>
    			<artifactId>maven-javadoc-plugin</artifactId>
    			<configuration>
    				<failOnError>false</failOnError>
    			</configuration>
    		</plugin>
    	</plugins>
    </build>
</project>