<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

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

	<groupId>org.gcube.common.security</groupId>
	<artifactId>gcube-secrets</artifactId>
	<version>2.0.0-SNAPSHOT</version>
	<name>GCube Secrets</name>

	<scm>
		<connection>
			scm:git:https://code-repo.d4science.org/gCubeSystem/gcube-secrets</connection>
		<developerConnection>
			scm:git:https://code-repo.d4science.org/gCubeSystem/gcube-secrets</developerConnection>
		<url>https://code-repo.d4science.org/gCubeSystem/gcube-secrets</url>
	</scm>

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

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

	<developers>
	    <developer>
			<id>luca.frosini</id>
			<name>Luca Frosini</name>
			<email>luca.frosini@isti.cnr.it</email>
			<url>https://www.isti.cnr.it/en/about/people-detail/141/Frosini_Luca</url>
			<organization>ISTI-CNR</organization>
	      	<organizationUrl>https://www.isti.cnr.it/</organizationUrl>
			<roles>
				<role>researcher</role>
				<role>developer</role>
			</roles>
			<timezone>Europe/Rome</timezone>
			<properties>
				<orcidId>0000-0003-3183-2291</orcidId>
				<orcidUrl>https://orcid.org/0000-0003-3183-2291</orcidUrl>
			</properties>
	    </developer>
	</developers>

	<dependencies>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
		</dependency>
		
		<!-- <dependency>
			<groupId>org.gcube.common</groupId>
			<artifactId>keycloak-client</artifactId>
		</dependency> -->

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

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

		<!-- gcube jackson libraries-->
        <dependency>
            <groupId>org.gcube.common</groupId>
            <artifactId>gcube-jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>org.gcube.common</groupId>
            <artifactId>gcube-jackson-annotations</artifactId>
        </dependency>
        <dependency>
            <groupId>org.gcube.common</groupId>
            <artifactId>gcube-jackson-core</artifactId>
        </dependency>

		<!-- Test Dependencies -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<scope>test</scope>
		</dependency>

	</dependencies>

    <build>
    <plugins>
        <plugin>
            <groupId>org.openrewrite.maven</groupId>
            <artifactId>rewrite-maven-plugin</artifactId>
            <version>6.1.3</version> <!-- Or the latest stable version -->
            <configuration>
                <exportDatatables>true</exportDatatables>
                <activeRecipes>
                    <recipe>org.openrewrite.java.migrate.UpgradeToJava17</recipe>
                    <recipe>org.openrewrite.java.migrate.jakarta.JavaxMigrationToJakarta</recipe>
                </activeRecipes>
            </configuration>
            <dependencies>
                <dependency>
                    <groupId>org.openrewrite.recipe</groupId>
                    <artifactId>rewrite-migrate-java</artifactId>
                    <version>3.2.0</version> <!-- Or the latest compatible version -->
                </dependency>
            </dependencies>
        </plugin>
    </plugins>
</build>
</project>
