title: Streams not supported when using Jedis 3.6.0 in spring boot 2.3.x
body: <p>Today when I want to using Jedis to consume stream, throw this error:</p>
  <pre><code>java.lang.UnsupportedOperationException: Streams not supported using Jedis!
      at org.springframework.data.redis.connection.jedis.JedisConnection.streamCommands(JedisConnection.java:154) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.connection.DefaultedRedisConnection.xReadGroup(DefaultedRedisConnection.java:591) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.core.DefaultStreamOperations$4.inRedis(DefaultStreamOperations.java:310) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.core.DefaultStreamOperations$RecordDeserializingRedisCallback.doInRedis(DefaultStreamOperations.java:376) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.core.DefaultStreamOperations$RecordDeserializingRedisCallback.doInRedis(DefaultStreamOperations.java:371) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:228) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:188) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:96) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.core.DefaultStreamOperations.read(DefaultStreamOperations.java:305) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.stream.DefaultStreamMessageListenerContainer.lambda$getReadFunction$3(DefaultStreamMessageListenerContainer.java:236) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.stream.StreamPollTask.doLoop(StreamPollTask.java:138) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at org.springframework.data.redis.stream.StreamPollTask.run(StreamPollTask.java:123) ~[spring-data-redis-2.3.9.RELEASE.jar:2.3.9.RELEASE]
      at misc.config.async.pool.MdcTaskDecorator.lambda$decorate$0(MdcTaskDecorator.java:29) ~[classes/:na]
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
      at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
  </code></pre>
  <p>I have search the docs that I know the Jedis is support Redis stream. Why did this still tell me did not support Redis Stream? This is my dependencies define in Gradle, this code force using 3.6.0 version of Jedis:</p>
  <pre><code>resolutionStrategy {
              eachDependency { DependencyResolveDetails details -&gt;
                
                  if (details.requested.group == 'redis.clients') {
                      details.useVersion &quot;3.6.0&quot;
                  }
                  
              }
          }
  </code></pre>
  <p>this code import Jedis:</p>
  <pre><code>api (&quot;org.springframework.boot:spring-boot-starter-data-redis&quot;) {
              exclude group: &quot;io.lettuce&quot;, module: &quot;lettuce-core&quot;
              exclude group: &quot;redis.clients&quot;, module: &quot;jedis&quot;
          }
          api &quot;redis.clients:jedis:3.6.0&quot;
  </code></pre>
  <p>what should I do to avoid this problem? I tried this way to upgrade my spring data version like this:</p>
  <pre><code>api (&quot;org.springframework.boot:spring-boot-starter-data-redis&quot;) {
              exclude group: &quot;io.lettuce&quot;, module: &quot;lettuce-core&quot;
              exclude group: &quot;org.springframework.data&quot;, module: &quot;spring-data-redis&quot;
          }
          api &quot;org.springframework.data:spring-data-redis:2.5.0&quot;
  </code></pre>
  <p>seems would cause other compatiable problem. And now I am using <code>2.3.10.RELEASE</code> is already the newest version of spring boot 2.3.x. Should I upgrade to 2.4.x? If I upgrade to spring boot 2.4.x, there is no compatiable stable spring cloud version to match.</p>