Skip to content

Commit efd4fff

Browse files
committed
update code
1 parent c9ef3d1 commit efd4fff

7 files changed

Lines changed: 31 additions & 29 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ well, where all services code is in Spring.
5454

5555
* Spring 5+, 6+, 7+
5656
* Java 1.8+,17, 21
57-
* Spring boot 2+,3+
57+
* Spring boot 2+,3+,4+
5858
* Lettuce client for Redis cluster
5959
* Read master preference for Redis cluster
6060

@@ -69,21 +69,22 @@ Release Version: [Maven central](https://search.maven.org/search?q=g:com.github.
6969
**NOTE:**
7070

7171
* For Spring Boot 3.x use Rqueue 3.x
72+
* For Spring Boot 4.x use Rqueue 4.x
7273

7374
Get the latest one
7475
from [Maven central](https://search.maven.org/search?q=g:com.github.sonus21%20AND%20a:rqueue-spring-boot-starter)
7576

7677
* Add dependency
7778
* Gradle
7879
```groovy
79-
implementation 'com.github.sonus21:rqueue-spring-boot-starter:3.0.0-RELEASE'
80+
implementation 'com.github.sonus21:rqueue-spring-boot-starter:4.0.0-RELEASE'
8081
```
8182
* Maven
8283
```xml
8384
<dependency>
8485
<groupId>com.github.sonus21</groupId>
8586
<artifactId>rqueue-spring-boot-starter</artifactId>
86-
<version>3.0.0-RELEASE</version>
87+
<version>4.0.0-RELEASE</version>
8788
</dependency>
8889
```
8990
@@ -96,21 +97,22 @@ from [Maven central](https://search.maven.org/search?q=g:com.github.sonus21%20AN
9697
**NOTE**
9798
9899
* For Spring Framework 6.x use Rqueue 3.x
100+
* For Spring Framework 7.x use Rqueue 4.x
99101
100102
Get the latest one
101103
from [Maven central](https://search.maven.org/search?q=g:com.github.sonus21%20AND%20a:rqueue-spring)
102104
103105
* Add Dependency
104106
* Gradle
105107
```groovy
106-
implementation 'com.github.sonus21:rqueue-spring:3.0.0-RELEASE'
108+
implementation 'com.github.sonus21:rqueue-spring:4.0.0-RELEASE'
107109
```
108110
* Maven
109111
```xml
110112
<dependency>
111113
<groupId>com.github.sonus21</groupId>
112114
<artifactId>rqueue-spring</artifactId>
113-
<version>3.0.0-RELEASE</version>
115+
<version>4.0.0-RELEASE</version>
114116
</dependency>
115117
```
116118
* Add annotation `EnableRqueue` on application config class

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ allprojects {
3535
}
3636

3737
ext {
38-
springBootVersion = "3.5.0"
39-
springVersion = "6.2.0"
40-
springDataVersion = "3.5.0"
41-
microMeterVersion = "1.15.0"
38+
springBootVersion = "4.0.1"
39+
springVersion = "7.0.3"
40+
springDataVersion = "4.0.2"
41+
microMeterVersion = "1.16.2"
4242

4343
// logging dependencies
4444
lombokVersion = "1.18.42"
@@ -83,7 +83,7 @@ ext {
8383

8484
subprojects {
8585
group = "com.github.sonus21"
86-
version = "3.0.0-RELEASE"
86+
version = "4.0.0-RELEASE"
8787

8888
dependencies {
8989
// https://mvnrepository.com/artifact/org.springframework/spring-messaging

docs/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ This release fixes a critical bug where task multiplication caused excessive Red
4646
resource usage. For details, see issue #[193].
4747

4848

49-
## Release [3.0.0] 17-Jan-2022
49+
## Release [4.0.0] 17-Jan-2022
5050

51-
We're so excited to release Rqueue `3.0.0`. This release supports Java 21,
52-
Spring Boot 3.x and Spring Framework 6.x.
51+
We're so excited to release Rqueue `4.0.0`. This release supports Java 21,
52+
Spring Boot 4.x and Spring Framework 7.x.
5353

5454
### [2.13.0] - 25-Dec-2022
5555
### Fixes
@@ -382,7 +382,7 @@ Breaking change, for migration [see](./migration#1x-to-2x)
382382

383383
[2.13.1]: https://repo1.maven.org/maven2/com/github/sonus21/rqueue-core/2.13.1-RELEASE
384384

385-
[3.0.0]: https://repo1.maven.org/maven2/com/github/sonus21/rqueue-core/3.0.0-RELEASE
385+
[4.0.0]: https://repo1.maven.org/maven2/com/github/sonus21/rqueue-core/4.0.0-RELEASE
386386

387387
[122]: https://github.com/sonus21/rqueue/issues/122
388388
[193]: https://github.com/sonus21/rqueue/issues/193

docs/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ frameworks.
5050

5151
### Requirements
5252

53-
* Spring 6+
54-
* Spring Boot 3+
53+
* Spring 6+, 7+
54+
* Spring Boot 3+, 4+
5555
* Java 21+
5656
* Spring Reactive
5757
* Lettuce client for Redis cluster
@@ -81,24 +81,24 @@ Redis Cluster compatibility. Failure to do so may prevent the application from s
8181
### Spring Boot
8282

8383
{: .warning }
84-
Use Rqueue Spring Boot Starter 3.x for Spring Boot 3.x.
84+
Use Rqueue Spring Boot Starter 4.x for Spring Boot 4.x, and 3.x for Spring Boot 3.x.
8585

8686
Download the latest version from [Maven Central][Boot Maven Central] and add the
8787
dependency to your project:
8888

89-
#### Spring Boot 3.x Setup
89+
#### Spring Boot 4.x Setup
9090

9191
* Gradle
9292
```groovy
93-
implementation 'com.github.sonus21:rqueue-spring-boot-starter:3.0.0-RELEASE'
93+
implementation 'com.github.sonus21:rqueue-spring-boot-starter:4.0.0-RELEASE'
9494
```
9595

9696
* Maven
9797
```xml
9898
<dependency>
9999
<groupId>com.github.sonus21</groupId>
100100
<artifactId>rqueue-spring-boot-starter</artifactId>
101-
<version>3.0.0-RELEASE</version>
101+
<version>4.0.0-RELEASE</version>
102102
</dependency>
103103
```
104104

@@ -107,24 +107,24 @@ dependency to your project:
107107
### Spring Framework
108108

109109
{: .warning }
110-
Use Rqueue Spring 3.x for Spring Framework 6.x.
110+
Use Rqueue Spring 4.x for Spring Framework 7.x, and 3.x for Spring Framework 6.x.
111111

112112
Download the latest version from [Maven Central][Maven Central] and add the
113113
dependency to your project:
114114

115-
#### Spring Framework 6.x Setup
115+
#### Spring Framework 7.x Setup
116116

117117
* Gradle
118118
```groovy
119-
implementation 'com.github.sonus21:rqueue-spring:3.0.0-RELEASE'
119+
implementation 'com.github.sonus21:rqueue-spring:4.0.0-RELEASE'
120120
```
121121

122122
* Maven
123123
```xml
124124
<dependency>
125125
<groupId>com.github.sonus21</groupId>
126126
<artifactId>rqueue-spring</artifactId>
127-
<version>3.0.0-RELEASE</version>
127+
<version>4.0.0-RELEASE</version>
128128
</dependency>
129129
```
130130

rqueue-core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dependencies {
5353
// https://mvnrepository.com/artifact/org.springframework/spring-webmvc
5454
api "org.springframework:spring-webmvc:${springVersion}"
5555
api "org.springframework:spring-webflux:${springVersion}"
56-
api "io.pebbletemplates:pebble-spring6:${pebbleVersion}"
56+
api "io.pebbletemplates:pebble-spring7:${pebbleVersion}"
5757
api "io.seruco.encoding:base62:${serucoEncodingVersion}"
5858
// https://mvnrepository.com/artifact/org.apache.commons/commons-collections4
5959
api "org.apache.commons:commons-collections4:${apacheCommonCollectionVerion}"

rqueue-spring-boot-starter/src/main/java/com/github/sonus21/rqueue/spring/boot/RqueueListenerAutoConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
import com.github.sonus21.rqueue.utils.condition.RqueueEnabled;
3434
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
3535
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
36-
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
36+
import org.springframework.boot.data.redis.autoconfigure.DataRedisAutoConfiguration;
3737
import org.springframework.context.annotation.Bean;
3838
import org.springframework.context.annotation.ComponentScan;
3939
import org.springframework.context.annotation.Conditional;
4040
import org.springframework.context.annotation.Configuration;
4141
import org.springframework.context.annotation.DependsOn;
4242

4343
@Configuration
44-
@AutoConfigureAfter(RedisAutoConfiguration.class)
44+
@AutoConfigureAfter(DataRedisAutoConfiguration.class)
4545
@ComponentScan({"com.github.sonus21.rqueue.web", "com.github.sonus21.rqueue.dao"})
4646
@Conditional({RqueueEnabled.class})
4747
public class RqueueListenerAutoConfig extends RqueueListenerBaseConfig {

rqueue-spring-boot-starter/src/main/java/com/github/sonus21/rqueue/spring/boot/RqueueMetricsAutoConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
import java.util.Collections;
2929
import java.util.Map;
3030
import java.util.Map.Entry;
31-
import org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration;
32-
import org.springframework.boot.actuate.autoconfigure.metrics.MetricsProperties;
31+
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
32+
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsProperties;
3333
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
3434
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
3535
import org.springframework.context.annotation.Bean;

0 commit comments

Comments
 (0)