Skip to content

Commit

Permalink
[SYNCOPE-1852] Core Persistence JPA upgrade tool (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso authored Jan 14, 2025
1 parent 20014a4 commit 163977b
Show file tree
Hide file tree
Showing 32 changed files with 26,275 additions and 49 deletions.
480 changes: 480 additions & 0 deletions core/persistence-jpa-upgrader/LICENSE

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions core/persistence-jpa-upgrader/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
Apache Syncope
Copyright 2012-2025 The Apache Software Foundation

This product includes software developed by:
The Apache Software Foundation (http://www.apache.org/).

The following copyright notice(s) were affixed to portions of this code
with which this file is now or was at one time distributed.

==

This product includes software developed by the Jackson project.

==

This product includes software developed by the HikariCP project.

==

This product includes software developed by Micrometer Application Metrics.
Copyright (c) 2017-Present VMware, Inc. All Rights Reserved.

==

This product includes software produced and maintained by Jakarta Annotations
All content is the property of the respective authors or their employers.

==

This product includes software developed by the Eclipse Project for Jakarta Messaging.
Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
Copyright 2021 Contributors to the Eclipse Foundation

==

This product includes software produced and maintained by Jakarta Persistence project
All content is the property of the respective authors or their employers.

==

This product includes software developed by the Eclipse Project for Jakarta Transactions.
Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.

==

This products includes software developed by the Simple Logging Facade for Java (SLF4J) project.
Copyright (c) 2004-2016 QOS.ch.

==

This product includes software developed by SpringSource.
Copyright (c) 2004-2022 SpringSource
All rights reserved.

==

This product includes software developed by the SnakeYAML project.
214 changes: 214 additions & 0 deletions core/persistence-jpa-upgrader/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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>org.apache.syncope</groupId>
<artifactId>syncope-core</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>

<name>Apache Syncope Core Persistence JPA Upgrader</name>
<description>Apache Syncope Core Persistence JPA Upgrader</description>
<groupId>org.apache.syncope.core</groupId>
<artifactId>syncope-core-persistence-jpa-upgrader</artifactId>
<packaging>jar</packaging>

<properties>
<syncope.connid.location>file:${bundles.directory}/</syncope.connid.location>

<jdbcdriver.groupId>org.postgresql</jdbcdriver.groupId>
<jdbcdriver.artifactId>postgresql</jdbcdriver.artifactId>

<rootpom.basedir>${basedir}/../..</rootpom.basedir>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
</dependency>

<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>

<!-- TEST -->
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>jcache</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.syncope.core</groupId>
<artifactId>syncope-core-workflow-java</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.syncope.core</groupId>
<artifactId>syncope-core-persistence-jpa</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.zonky.test</groupId>
<artifactId>embedded-postgres</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<id>set-bundles</id>
<phase>process-test-resources</phase>
<goals>
<goal>copy</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<syncope.conf.dir>${project.build.directory}/test-classes</syncope.conf.dir>
<syncope.connid.location>file:${bundles.directory}/</syncope.connid.location>
<TESTCONTAINERS_REUSE_ENABLE>true</TESTCONTAINERS_REUSE_ENABLE>
</systemPropertyVariables>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layout>ZIP</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</testResource>
<testResource>
<directory>${basedir}/../persistence-jpa/src/test/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>core-test.properties</exclude>
</excludes>
</testResource>
<testResource>
<directory>${basedir}/../provisioning-java/src/test/resources</directory>
<filtering>true</filtering>
<includes>
<include>core-test.properties</include>
</includes>
</testResource>
</testResources>
</build>

<profiles>
<profile>
<id>apache-release</id>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<skipSource>true</skipSource>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
Loading

0 comments on commit 163977b

Please sign in to comment.