|
| 1 | += Version Requirements |
| 2 | +:page-toclevels: 3 |
| 3 | +:page-pagination: |
| 4 | +:source-highlighter: highlight.js |
| 5 | + |
| 6 | +This page documents the version requirements and compatibility policy for Redis OM Spring. |
| 7 | + |
| 8 | +[[version-requirements]] |
| 9 | +== Current Version Requirements |
| 10 | + |
| 11 | +Redis OM Spring has the following version requirements: |
| 12 | + |
| 13 | +[cols="30,20,20,30", options="header"] |
| 14 | +|=== |
| 15 | +|Dependency |
| 16 | +|Minimum Version |
| 17 | +|Recommended Version |
| 18 | +|Notes |
| 19 | + |
| 20 | +|Spring Boot |
| 21 | +|3.3.x |
| 22 | +|3.4.x or 3.5.x |
| 23 | +|Built with Spring Boot 3.4.5 |
| 24 | + |
| 25 | +|Spring Data Redis |
| 26 | +|3.4.1 |
| 27 | +|3.4.5 or later |
| 28 | +|Aligned with Spring Boot version |
| 29 | + |
| 30 | +|Spring Framework |
| 31 | +|6.2.x |
| 32 | +|Latest 6.x |
| 33 | +|Transitive via Spring Boot |
| 34 | + |
| 35 | +|Jedis |
| 36 | +|5.2.0 |
| 37 | +|5.2.0 or later |
| 38 | +|Redis Java client |
| 39 | + |
| 40 | +|Java |
| 41 | +|17 |
| 42 | +|17 or 21 |
| 43 | +|Spring Boot 3.x requires Java 17+ |
| 44 | + |
| 45 | +|Redis Stack |
| 46 | +|6.2.x |
| 47 | +|7.2.x or later |
| 48 | +|For JSON and Search modules |
| 49 | +|=== |
| 50 | + |
| 51 | +== Spring Boot Version Compatibility Policy |
| 52 | + |
| 53 | +Redis OM Spring follows an **N-2 support policy** for Spring Boot versions: |
| 54 | + |
| 55 | +* We build with the latest stable Spring Boot version |
| 56 | +* We support the current version and two previous minor versions that are still receiving OSS updates |
| 57 | +* We upgrade Spring Boot with each Redis OM Spring release |
| 58 | + |
| 59 | +=== Example |
| 60 | + |
| 61 | +As of Redis OM Spring 1.0.0-RC3 (July 2025): |
| 62 | + |
| 63 | +* **Built with**: Spring Boot 3.4.5 |
| 64 | +* **Minimum supported**: Spring Boot 3.3.x (OSS support until June 2025) |
| 65 | +* **Recommended**: Spring Boot 3.4.x or 3.5.x |
| 66 | + |
| 67 | +[WARNING] |
| 68 | +==== |
| 69 | +Using older Spring Boot versions may work but is not officially tested or supported. For production use, we recommend staying within the supported version range. |
| 70 | +==== |
| 71 | + |
| 72 | +== How the Support Policy Works |
| 73 | + |
| 74 | +=== Release Schedule |
| 75 | + |
| 76 | +Spring Boot releases follow a predictable schedule: |
| 77 | + |
| 78 | +* New major or minor versions every 6 months (May and November) |
| 79 | +* OSS support for 12 months per minor version |
| 80 | +* Commercial support available for extended periods |
| 81 | + |
| 82 | +=== Our Approach |
| 83 | + |
| 84 | +1. **On each Redis OM Spring release**: We update to the latest stable Spring Boot version |
| 85 | +2. **Minimum version**: We support versions that are still receiving OSS updates |
| 86 | +3. **Testing**: We test against all supported Spring Boot versions in our CI pipeline |
| 87 | + |
| 88 | +=== Determining Supported Versions |
| 89 | + |
| 90 | +To determine which Spring Boot versions Redis OM Spring supports: |
| 91 | + |
| 92 | +1. Check the `springBootVersion` in `gradle.properties` - this is what we build with |
| 93 | +2. Check the https://spring.io/projects/spring-boot#support[Spring Boot support timeline] |
| 94 | +3. We support the build version and any previous minor versions still receiving OSS updates |
| 95 | + |
| 96 | +== Upgrading Spring Boot |
| 97 | + |
| 98 | +If you need to upgrade your Spring Boot version: |
| 99 | + |
| 100 | +1. Check the https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.x-Release-Notes[Spring Boot release notes] for breaking changes |
| 101 | +2. Update your `pom.xml` or `build.gradle` to use the new version |
| 102 | +3. Run your tests to ensure compatibility |
| 103 | +4. Pay special attention to: |
| 104 | + * Spring Data Redis changes |
| 105 | + * Spring Framework changes |
| 106 | + * Java version requirements |
| 107 | + |
| 108 | +== Java Version Requirements |
| 109 | + |
| 110 | +Redis OM Spring requires Java 17 or higher because: |
| 111 | + |
| 112 | +* Spring Boot 3.x requires Java 17 as a minimum |
| 113 | +* We use Java 17 language features in our codebase |
| 114 | +* Java 17 is an LTS (Long Term Support) release |
| 115 | + |
| 116 | +We recommend using Java 17 or Java 21 (the next LTS) for production deployments. |
| 117 | + |
| 118 | +== Redis Requirements |
| 119 | + |
| 120 | +Redis OM Spring requires Redis Stack or Redis with specific modules: |
| 121 | + |
| 122 | +* **Minimum Redis version**: 6.2.x |
| 123 | +* **Recommended**: Redis Stack 7.2.x or later |
| 124 | +* **Required modules**: |
| 125 | + ** RedisJSON for document storage |
| 126 | + ** RediSearch for indexing and querying |
| 127 | + |
| 128 | +You can run Redis Stack using Docker: |
| 129 | + |
| 130 | +[source,bash] |
| 131 | +---- |
| 132 | +docker run -p 6379:6379 redis/redis-stack:latest |
| 133 | +---- |
| 134 | + |
| 135 | +Or Redis 8.0+ which includes these capabilities: |
| 136 | + |
| 137 | +[source,bash] |
| 138 | +---- |
| 139 | +docker run -p 6379:6379 redis:8.0.0 |
| 140 | +---- |
| 141 | + |
| 142 | +== Dependency Version Alignment |
| 143 | + |
| 144 | +When using Redis OM Spring, ensure your dependencies are aligned: |
| 145 | + |
| 146 | +[source,xml] |
| 147 | +---- |
| 148 | +<properties> |
| 149 | + <spring-boot.version>3.4.5</spring-boot.version> |
| 150 | + <redis-om-spring.version>1.0.0-RC3</redis-om-spring.version> |
| 151 | +</properties> |
| 152 | +
|
| 153 | +<dependencies> |
| 154 | + <dependency> |
| 155 | + <groupId>com.redis.om</groupId> |
| 156 | + <artifactId>redis-om-spring</artifactId> |
| 157 | + <version>${redis-om-spring.version}</version> |
| 158 | + </dependency> |
| 159 | + <!-- Spring Boot dependencies will be managed by the parent POM --> |
| 160 | +</dependencies> |
| 161 | +---- |
| 162 | + |
| 163 | +[TIP] |
| 164 | +==== |
| 165 | +Use Spring Boot's dependency management to ensure all Spring-related dependencies are aligned with your Spring Boot version. |
| 166 | +==== |
0 commit comments