Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
991d375
Merge pull request #139 from xdev-software/master
JohannesRabauer Aug 6, 2024
8b17bbe
Update dependency org.apache.maven.plugins:maven-gpg-plugin to v3.2.5
xdev-renovate Aug 12, 2024
d88dcfb
Update dependency org.apache.maven.plugins:maven-gpg-plugin to v3.2.5
xdev-renovate Aug 12, 2024
e894576
Merge pull request #143 from xdev-software/renovate/org.apache.maven.…
JohannesRabauer Aug 16, 2024
ae41533
Update dependency maven to v3.9.9
xdev-renovate Aug 18, 2024
f247c9a
Update dependency org.apache.maven.plugins:maven-project-info-reports…
xdev-renovate Aug 22, 2024
2f8e6e2
Update dependency org.apache.maven.plugins:maven-checkstyle-plugin to…
xdev-renovate Aug 23, 2024
5cf7f3f
Update dependency org.apache.maven.plugins:maven-jxr-plugin to v3.5.0
xdev-renovate Aug 23, 2024
fdd3d61
Update dependency com.puppycrawl.tools:checkstyle to v10.18.0
xdev-renovate Aug 26, 2024
f7b9b65
Merge pull request #93 from xdev-software/renovate/com.puppycrawl.too…
AB-xdev Aug 26, 2024
f827175
Merge pull request #89 from xdev-software/renovate/maven-3.x
AB-xdev Aug 26, 2024
63071e2
Merge pull request #91 from xdev-software/renovate/org.apache.maven.p…
AB-xdev Aug 26, 2024
3dbcf6f
Merge pull request #92 from xdev-software/renovate/org.apache.maven.p…
AB-xdev Aug 26, 2024
36d8842
Merge pull request #90 from xdev-software/renovate/org.apache.maven.p…
AB-xdev Aug 26, 2024
3e8774c
Merge pull request #88 from xdev-software/renovate/org.apache.maven.p…
AB-xdev Aug 26, 2024
ca02508
Update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3…
xdev-renovate Aug 28, 2024
409f50d
Update dependency org.apache.maven.plugins:maven-pmd-plugin to v3.25.0
xdev-renovate Aug 28, 2024
bdba83b
Merge pull request #94 from xdev-software/renovate/org.apache.maven.p…
AB-xdev Aug 28, 2024
9b0e9a1
Merge pull request #95 from xdev-software/renovate/org.apache.maven.p…
AB-xdev Aug 28, 2024
e88198c
Update dependency com.puppycrawl.tools:checkstyle to v10.18.1
xdev-renovate Aug 31, 2024
221053a
Update net.sourceforge.pmd to v7.5.0
xdev-renovate Aug 31, 2024
c76b9d8
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Sep 2, 2024
4d27eed
Merge pull request #97 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Sep 2, 2024
f19c577
Merge pull request #96 from xdev-software/renovate/com.puppycrawl.too…
AB-xdev Sep 2, 2024
75f839e
Fix sonar PR detection
AB-xdev Sep 2, 2024
b47dfd5
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Sep 9, 2024
2bcb4a6
Update dependency org.apache.maven.plugins:maven-gpg-plugin to v3.2.6
xdev-renovate Sep 15, 2024
eff887a
Merge pull request #98 from xdev-software/renovate/org.apache.maven.p…
AB-xdev Sep 19, 2024
43edc82
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Sep 23, 2024
40303d4
Update dependency com.mycila:license-maven-plugin to v4.6
xdev-renovate Sep 26, 2024
f8289ae
Merge pull request #99 from xdev-software/renovate/com.mycila-license…
AB-xdev Sep 27, 2024
52afc82
Update net.sourceforge.pmd to v7.6.0
xdev-renovate Sep 27, 2024
0443fe6
Merge pull request #100 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Sep 27, 2024
327b9c9
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Sep 30, 2024
2275024
Update dependency com.puppycrawl.tools:checkstyle to v10.18.2
xdev-renovate Oct 1, 2024
a90b9cb
Update dependency org.apache.maven.plugins:maven-gpg-plugin to v3.2.7
xdev-renovate Oct 1, 2024
6e085bb
Update org.springframework.boot.version to v3.3.4
xdev-renovate Oct 1, 2024
f5057f7
Update dependency org.apache.maven.plugins:maven-surefire-plugin to v…
xdev-renovate Oct 1, 2024
d4d4b1a
Fixed issue with migration script
JohannesRabauer Oct 1, 2024
f502b50
Merge pull request #161 from xdev-software/renovate/com.puppycrawl.to…
JohannesRabauer Oct 1, 2024
7211387
Merge pull request #157 from xdev-software/renovate/org.apache.maven.…
JohannesRabauer Oct 1, 2024
c0217b4
Merge pull request #148 from xdev-software/renovate/org.springframewo…
JohannesRabauer Oct 1, 2024
f22c6eb
Merge pull request #146 from xdev-software/renovate/org.apache.maven.…
JohannesRabauer Oct 1, 2024
fb3746f
Updated READMEs and Version
JohannesRabauer Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- '.idea/**'
- 'assets/**'
pull_request:
types: [opened, synchronize, reopened]
branches: [ develop ]
paths-ignore:
- '**.md'
- '.config/**'
Expand Down
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.2.0

* Fixed issue with not found migration script (for v2.X)
* Updated org.springframework.boot.version to v3.3.4

# 2.1.0

* Implemented auto-id-generation for UUIDs.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ instructions** are in the documentation](https://xdev-software.github.io/spring-
| ``1.0.3/1.0.4`` | ``17`` | ``3.2.3`` | ``1.2.0`` |
| ``1.0.5-1.0.7`` | ``17`` | ``3.2.5`` | ``1.3.2`` |
| ``1.0.8-1.0.10`` | ``17`` | ``3.3.1`` | ``1.3.2`` |
| ``>= 2.0.0`` | ``17`` | ``3.3.2`` | ``1.4.0`` |
| ``2.0.0-2.1.0`` | ``17`` | ``3.3.2`` | ``1.4.0`` |
| ``>= 2.2.0`` | ``17`` | ``3.3.4`` | ``1.4.0`` |

## Demo

Expand Down
6 changes: 3 additions & 3 deletions docs/antora.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: ROOT
title: Spring-Data-Eclipse-Store
version: master
display_version: '2.1.0'
display_version: '2.2.0'
start_page: index.adoc
nav:
- modules/ROOT/nav.adoc
asciidoc:
attributes:
product-name: 'Spring-Data-Eclipse-Store'
display-version: '2.1.0'
maven-version: '2.1.0'
display-version: '2.2.0'
maven-version: '2.2.0'
page-editable: false
page-out-of-support: false
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>software.xdev</groupId>
<artifactId>spring-data-eclipse-store-root</artifactId>
<version>2.2.1-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<packaging>pom</packaging>

<organization>
Expand Down Expand Up @@ -45,12 +45,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.17.0</version>
<version>10.18.2</version>
</dependency>
</dependencies>
<configuration>
Expand All @@ -75,7 +75,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.24.0</version>
<version>3.25.0</version>
<configuration>
<includeTests>true</includeTests>
<printFailingErrors>true</printFailingErrors>
Expand All @@ -93,12 +93,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.4.0</version>
<version>7.6.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.4.0</version>
<version>7.6.0</version>
</dependency>
</dependencies>
</plugin>
Expand All @@ -110,7 +110,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
</plugin>
</plugins>
</reporting>
Expand Down
4 changes: 2 additions & 2 deletions spring-data-eclipse-store-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>software.xdev</groupId>
<artifactId>spring-data-eclipse-store-root</artifactId>
<version>2.2.1-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
</parent>

<artifactId>spring-data-eclipse-store-benchmark</artifactId>
Expand All @@ -25,7 +25,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<org.springframework.boot.version>3.3.2</org.springframework.boot.version>
<org.springframework.boot.version>3.3.4</org.springframework.boot.version>
<jmh.version>1.37</jmh.version>
</properties>

Expand Down
6 changes: 3 additions & 3 deletions spring-data-eclipse-store-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>software.xdev</groupId>
<artifactId>spring-data-eclipse-store-root</artifactId>
<version>2.2.1-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
</parent>

<artifactId>spring-data-eclipse-store-demo</artifactId>
Expand All @@ -28,7 +28,7 @@

<mainClass>software.xdev.spring.data.eclipse.store.demo.complex.ComplexDemoApplication</mainClass>

<org.springframework.boot.version>3.3.2</org.springframework.boot.version>
<org.springframework.boot.version>3.3.4</org.springframework.boot.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -113,7 +113,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.1</version>
<version>3.5.0</version>
<configuration>
<argLine>
--add-opens java.base/java.util=ALL-UNNAMED
Expand Down
4 changes: 2 additions & 2 deletions spring-data-eclipse-store-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>software.xdev</groupId>
<artifactId>spring-data-eclipse-store-root</artifactId>
<version>2.2.1-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
</parent>

<artifactId>spring-data-eclipse-store-jpa</artifactId>
Expand All @@ -30,7 +30,7 @@

<mainClass>software.xdev.spring.data.eclipse.store.demo.complex.ComplexDemoApplication</mainClass>

<org.springframework.boot.version>3.3.2</org.springframework.boot.version>
<org.springframework.boot.version>3.3.4</org.springframework.boot.version>
</properties>

<dependencyManagement>
Expand Down
24 changes: 12 additions & 12 deletions spring-data-eclipse-store/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<!-- Should be in sync with org.eclipse.store:integrations-spring-boot3 -->
<org.springframework.boot.version>3.3.2</org.springframework.boot.version>
<org.springframework.boot.version>3.3.4</org.springframework.boot.version>
<org.eclipse.store.version>1.4.0</org.eclipse.store.version>
<org.eclipse.serializer.version>1.4.0</org.eclipse.serializer.version>
</properties>
Expand Down Expand Up @@ -239,15 +239,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.6.2</version>
<version>3.7.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>4.5</version>
<version>4.6</version>
<configuration>
<properties>
<email>${project.organization.url}</email>
Expand Down Expand Up @@ -288,7 +288,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.8.0</version>
<version>3.10.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -306,7 +306,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.1</version>
<version>3.5.0</version>
<configuration>
<argLine>
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED
Expand Down Expand Up @@ -357,7 +357,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<version>3.2.7</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down Expand Up @@ -400,12 +400,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.17.0</version>
<version>10.18.2</version>
</dependency>
</dependencies>
<configuration>
Expand All @@ -430,7 +430,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.24.0</version>
<version>3.25.0</version>
<configuration>
<includeTests>true</includeTests>
<printFailingErrors>true</printFailingErrors>
Expand All @@ -447,12 +447,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.4.0</version>
<version>7.6.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.4.0</version>
<version>7.6.0</version>
</dependency>
</dependencies>
</plugin>
Expand All @@ -464,7 +464,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
</plugin>
</plugins>
</reporting>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,33 @@
import org.eclipse.store.storage.embedded.types.EmbeddedStorageManager;

import software.xdev.micromigration.eclipsestore.MigrationManager;
import software.xdev.micromigration.migrater.reflection.ReflectiveMigrater;
import software.xdev.micromigration.migrater.ExplicitMigrater;
import software.xdev.micromigration.scripts.VersionAgnosticMigrationScript;
import software.xdev.micromigration.version.MigrationVersion;
import software.xdev.spring.data.eclipse.store.repository.root.VersionedRoot;
import software.xdev.spring.data.eclipse.store.repository.root.update.scripts.v2_0_0_InitalizeVersioning;
import software.xdev.spring.data.eclipse.store.repository.root.update.scripts.v2_0_0_InitializeVersioning;


public final class EclipseStoreMigrator
{
public static final Class<?> FIRST_UPDATE_SCRIPT = v2_0_0_InitalizeVersioning.class;
public static final VersionAgnosticMigrationScript<?, ?>[] SCRIPTS =
new VersionAgnosticMigrationScript[]{
new v2_0_0_InitializeVersioning()
};

private EclipseStoreMigrator()
{
}

public static void migrate(final VersionedRoot versionedRoot, final EmbeddedStorageManager storageManager)
{
final ReflectiveMigrater migrater =
new ReflectiveMigrater(FIRST_UPDATE_SCRIPT.getPackageName());
new MigrationManager(versionedRoot, migrater, storageManager)
.migrate(versionedRoot);
final ExplicitMigrater migrater = new ExplicitMigrater(SCRIPTS);
new MigrationManager(versionedRoot, migrater, storageManager).migrate(versionedRoot);
}

public static MigrationVersion getLatestVersion()
{
final ReflectiveMigrater migrater =
new ReflectiveMigrater(FIRST_UPDATE_SCRIPT.getPackageName());
final ExplicitMigrater migrater = new ExplicitMigrater(SCRIPTS);
final TreeSet<VersionAgnosticMigrationScript<?, ?>> sortedScripts = migrater.getSortedScripts();
return sortedScripts.isEmpty() ? new MigrationVersion(0, 0, 0) : sortedScripts.last().getTargetVersion();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
import software.xdev.spring.data.eclipse.store.repository.root.VersionedRoot;


/**
* <b>All migration scripts must be added to
* {@link software.xdev.spring.data.eclipse.store.repository.EclipseStoreMigrator#SCRIPTS}!</b>
*/
public abstract class LoggingUpdateScript
extends ReflectiveVersionMigrationScript<VersionedRoot, MigrationEmbeddedStorageManager>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,21 @@
import software.xdev.micromigration.eclipsestore.MigrationEmbeddedStorageManager;
import software.xdev.micromigration.scripts.Context;
import software.xdev.spring.data.eclipse.store.repository.root.EntityData;
import software.xdev.spring.data.eclipse.store.repository.root.RootDataV2;
import software.xdev.spring.data.eclipse.store.repository.root.VersionedRoot;


/**
* Copies elements from the old Root({@link software.xdev.spring.data.eclipse.store.repository.Root} to the newer
* version of Root({@link RootDataV2}).
* <p>
* <b>All migration scripts must be added to
* {@link software.xdev.spring.data.eclipse.store.repository.EclipseStoreMigrator#SCRIPTS}!</b>
*/
@SuppressWarnings("checkstyle:TypeName")
public class v2_0_0_InitalizeVersioning extends LoggingUpdateScript
public class v2_0_0_InitializeVersioning extends LoggingUpdateScript
{
private static final Logger LOG = LoggerFactory.getLogger(v2_0_0_InitalizeVersioning.class);
private static final Logger LOG = LoggerFactory.getLogger(v2_0_0_InitializeVersioning.class);

@Override
public void loggedMigrate(final Context<VersionedRoot, MigrationEmbeddedStorageManager> context)
Expand Down