Skip to content

Commit

Permalink
IGNITE-22102 Upgrade spring extensions to Spring 6 (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
shnus authored May 28, 2024
1 parent 17a3883 commit 51403ae
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 29 deletions.
2 changes: 1 addition & 1 deletion modules/spring-cache-ext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</parent>

<artifactId>ignite-spring-cache-ext</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<url>https://ignite.apache.org</url>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public class IgniteSpringCacheCompatibilityTest extends IgniteCompatibilityAbstr
"5.0.0.RELEASE",
"5.1.0.RELEASE",
"5.2.0.RELEASE",
"5.3.0"
"5.3.0",
"6.0.0",
"6.1.0"
);

/** */
Expand Down
10 changes: 5 additions & 5 deletions modules/spring-data-ext/examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
<parent>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-spring-data-parent-ext</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>ignite-spring-data-ext-examples</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>${project.parent.version}</version>

<url>https://ignite.apache.org</url>

Expand All @@ -59,19 +59,19 @@
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>${spring.data.version}</version>
<version>${spring.data32.version}</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private static void doSpringDataExample(Class<?> springAppCfg) {
System.out.println("\n>>> Repository size: " + repo.count());

// Destroying the context.
ctx.destroy();
ctx.close();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion modules/spring-data-ext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<artifactId>ignite-spring-data-parent-ext</artifactId>
<packaging>pom</packaging>
<version>2.1.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>

<url>https://ignite.apache.org</url>

Expand Down
10 changes: 5 additions & 5 deletions modules/spring-data-ext/spring-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
<parent>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-spring-data-parent-ext</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>ignite-spring-data-ext</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>${project.parent.version}</version>

<url>https://ignite.apache.org</url>

Expand All @@ -59,21 +59,21 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>${spring.data.version}</version>
<version>${spring.data32.version}</version>
<scope>provided</scope>
<!-- Exclude slf4j logging in favor of log4j -->
<exclusions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void fillInRepository() {

/** {@inheritDoc} */
@Override protected void afterTestsStopped() throws Exception {
ctx.destroy();
ctx.close();
}

/** */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class IgniteSpringDataQueriesSelfTest extends GridCommonAbstractTest {
* Performs context destroy after tests.
*/
@Override protected void afterTestsStopped() throws Exception {
ctx.destroy();
ctx.close();
}

/** */
Expand Down
8 changes: 4 additions & 4 deletions modules/spring-tx-ext/examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-spring-tx-parent-ext</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -69,19 +69,19 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
</dependency>

<dependency>
Expand Down
3 changes: 2 additions & 1 deletion modules/spring-tx-ext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@

<artifactId>ignite-spring-tx-parent-ext</artifactId>
<packaging>pom</packaging>
<version>1.1.0-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>

<url>https://ignite.apache.org</url>

<properties>
<maven.compiler.release>17</maven.compiler.release>
<xstream.version>1.4.8</xstream.version>
</properties>

Expand Down
8 changes: 4 additions & 4 deletions modules/spring-tx-ext/spring-tx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-spring-tx-parent-ext</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -57,21 +57,21 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
<version>${spring61.version}</version>
<optional>true</optional>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ public class IgniteSpringTransactionsCompatibilityTest extends IgniteCompatibili
"5.0.0.RELEASE",
"5.1.0.RELEASE",
"5.2.0.RELEASE",
"5.3.0"
"5.3.0",
"6.0.0",
"6.1.0"
);

/** */
Expand Down
1 change: 1 addition & 0 deletions parent-internal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<properties>
<spring-boot.version>2.2.13.RELEASE</spring-boot.version>
<spring.data.version>2.2.13.RELEASE</spring.data.version>
<spring.data32.version>3.2.5</spring.data32.version>
<spring53.version>5.3.19</spring53.version>
<spring61.version>6.1.6</spring61.version>

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@
<module>modules/camel-ext</module>
<module>modules/jms11-ext</module>
<module>modules/kafka-ext</module>
<module>modules/spring-data-ext</module>
<module>modules/spring-data-commons</module>
<module>modules/performance-statistics-ext</module>
<module>modules/spring-tx-ext</module>
<module>modules/spring-cache-ext</module>
<module>modules/cdc-ext</module>
<module>modules/aws-ext</module>
<module>modules/azure-ext</module>
Expand Down Expand Up @@ -80,6 +77,9 @@
</activation>
<modules>
<module>modules/spring-session-ext</module>
<module>modules/spring-cache-ext</module>
<module>modules/spring-data-ext</module>
<module>modules/spring-tx-ext</module>
</modules>
</profile>
</profiles>
Expand Down

0 comments on commit 51403ae

Please sign in to comment.